Y
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
willtim
2379 days ago
If one doesn't specify a comparator and there is no obvious/sensible default, then an error would be perfectly reasonable.
link