Personal Sorting Method Ruby