added Sort command and API in the same form : may add a DSL later