Simple sort function added