Y
Hacker News
new
|
ask
|
show
|
jobs
by
matthuggins
2426 days ago
What if you tried to sort an array of objects or functions?
1 comments
willtim
2426 days ago
If one doesn't specify a comparator and there is no obvious/sensible default, then an error would be perfectly reasonable.
link