SwC proper sorting