fix resource ordering on files