ENCAPSULATED sorting method