NEW: sort() method and test added