Added the sort() method