How to sort by time played and not username alphabetical order

Recently I’ve hired someone to make me a leaderboard that shows players the amount of time played by hours and minutes

it seems to sort the leaderboard by the players alphabetical names and not the time values for some reason, the person who scripted this told me it was a roblox bug

example: image

I don’t know if this is actually a bug or easily fixable but if you know how to fix this i’d love to hear back from anyone who can help. ty!

the leaderstats automatically arranges by amount, but it only does it for the 1st value meaning hours are what it is going by.