preserve selection order (IDEA-110484)