Adding list sort functionality - for issue 120