Add sort method