smarter results sorting, thanks to bpaf <3