created sort method for DrmSort