Revert "MDL-31000 Respect sortorder of repositories when displaying the filepicker"
Revert "MDL-31000 Respect sortorder of repositories when displaying the filepicker"

This change was reverted because the array keys need to be the id, existing code relies on this.
This reverts commit ef72c7942e69b41296989bbbd51a0d84ee4f636b.

dilawar/moodle