Alphabetise dependencies
Fallback to global rules on saving if ruleset doesn't exist (#14)