fixed sort attempt number 2