Sorts the given cells according to the order in the cell hierarchy. Ascending is optional and defaults to true.