fix Res Manager sort bug #243