Second sort attempt