Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
matthuggins
· 6y ago · 0 comments
What if you tried to sort an array of objects or functions?
Comments
[–]
willtim
6y ago
If one doesn't specify a comparator and there is no obvious/sensible default, then an error would be perfectly reasonable.