Sort An Array Of Objects Based On Another Array In C