Improve `utils.compareNatural` and sort function names properly