sort hooks by name