[Loader] : Huge cleanup of `_sort` and `_visit`.