"Avg Cast" and "Avg Hit" columns don't sort correctly

Issue: I selected a specific character and the “Damage Done” tab. I sorted by “Avg Cast” but realised that values smaller than 1000 were being regarded as bigger than any value that had a “k” in it. The column seems to sort by ignoring the “k” as a thousand multiplier and merely considering the number before it:

The same happens for “Avg Cast”. “Amount” seems to sort fine though, even with “k” or million multiplier “m”.