Sorting quantum systems efficiently.

Sorting quantum systems efficiently.