[Bug 27933] Implement "sort" command