Symptoms
When using the API to sort values, the values selected are not sorted.
Description
When using the API to sort something like the reseller stats, you will find that information such as the disk used is not sorted by a numerical value. An example command would be:
whmapi1 resellerstats user=$username api.sort.a.field=diskused api.sort.a.method=numerical api.sort.b.field=domain
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-41572. Follow this article to receive an email notification when a solution is published in the product.
Workaround
Use the WHM interface to review the stats.