Relevant Linear issue here. I left detailed research for this diff in my comment there. This diff sorts out (no pun intended) issues with MediaGalleryKeyboard displaying images in a weird order and instead mirrors the "default sorting provided by the platform" (from the Expo docs).
In summary, photos are now displayed in the same order as on a user's Camera Roll.