Fixed incorrect property reference when sorting resources