Changes the order of the rows according to the values of a selected column
The method supposes that the first value of the input list corresponds to the first
element of the column and so on.
This variable maps an integer representing a node/row with a list
of integers that represents a list of parents for that node/row
In oder to use it correctly, this variable needs to be initialized and a previous
map between a node and its corresponding integer is also required