The “smart” keyboard for the iPad Pro seems to type in a different apostrophe character than the iPad itself. This can result in weird sorting problems. To fix this, use the on screen keyboard or set the Smart Keyboard “U.S. International – PC”. Set this in the settings app of the iPad under Hardware Keyboard.