There is bug in Mac book Accessibility inspector. accessibilitySortPriority() works properly if same code is testes in real device