Added sort method(not working now)