Redmine#1160: sort return of findfiles() function and insert CF_NULL_VALUE only when needed