Added Sorting method