Media:Filename sorting improvement

3 jobs for master in 29 minutes and 12 seconds (queued for 3 seconds)