Added sort method