[forms] sort list of habitats by code, on aggregation test