LPS-49948 sort it alphabetically as much as possible, except where dependencies exist