Fix sort attempt