Fixed grouping by quest availability based on current location. Apparently that line wasn't so useless as I thought, though it wasn't done properly anyway.
Details
Now tasks are properly separated in available and unavailable ones and both groups are sorted accordingly.