Fixed up the Multisort

Found some error and that it was causing bugs with the pages so i fixed
it.
had an accidental ' in the code