medialibrary: Rework the way we sort files in the view

We do not care about the case and the full path, but we only care about the basename
of the uris (with the same case)