use a better sort

This will sort the things like you would expect and more closely matches npms defaults.