Sort instances by round-robin algorithm