gfx.sortDisplays uses insertion sort.