Edited sort of method