Sort An Array Of Objects Based On Another Array Of Pointers