maintaining a consistent sorting system