'Sort' method fixed