Fix for relevence sorting, was sorting on wrong field