Moved sort function out of class