Add sorting for internal entities at external entity page