A sorting service for NCS