Switched from HashMap to LinkedHashMap and added ORDER BY name to keep lexicographical order in names of departments