updated position sort