Sorting options in an entity reference Select list within a form
To enable this functionality in Drupal 8,


Add a view for your entity type.
Create an Entity Reference view display with a field and sort option (See comment from @saramm1 above).
Edit the Field Settings for the entity reference field and change the "Reference Type" to use a view.