New stable row sorting