basic sort completed