Sorting is not a good approach, specially if I use the base name which has no index. I already try that.
I'm always using the same order given by jenkins when listing the jobs.