Definitely a bug. I'll look into this at some point. Please note that this is not a finished game by any means. If anyone asked I'd call it a tech demo at this point :)
Seems to be that the sort function accepts a ternary predicate but then passes it to an implementation accepting a boolean one?
Seems to be that the sort function accepts a ternary predicate but then passes it to an implementation accepting a boolean one?