Sortability of representations of Lie algebras