stats: rework stats map key to fix sort order

to fix histo api command without param