Much faster sort method for use with sorted and acts_as_list gems.