API: added sort support to m5nr