fixed histogram sorting

Signed-off-by: Arleigh Dickerson <arleighdickerson@frugalu.com>