I would like to learn how to order a dataframe (List_Habitat) depending on your own criteria.
List_habitat:
Specie Habitat
Amaranthus Crop
Apiaceae Edge
Asteraceae Quercus
Malvaceae Wasteland
I want to sort the species based on the habitats that the Quercus habitat appears before the Wasteland, this before the Edge and finally the Crop habitat.