Sorting vectors now working