Selecting elements by index order