put sort compare function back as I am informed it's needed for immidiate future