Hacker News new | ask | show | jobs
by matthuggins 2379 days ago
What if you tried to sort an array of objects or functions?
1 comments

If one doesn't specify a comparator and there is no obvious/sensible default, then an error would be perfectly reasonable.