sorting same position elements should resolve in order (was resolving backwards)