summary: fix order by for habitat and species too.