Internally, quests are grouped by tier (level required to get the quest) and then by either location of the questgiver NPC (Dalimond, Sslanis, etc) for stand-alone quests or by quest lines (Rare Foods, Dragon Ability, etc).