I am looking for an elegant solution to the order problem that I have.
I have a database query that returns a list of results sorted by name. The results will always contain one element called the "Primary Element", which should always appear first in the list of results. This item is not marked with a separate field in the database and therefore needs to be identified by name.
For example, if the results are as follows:
"A Item"
"B Item"
"Main Item"
"Y Item"
"Z Item"
I need the alphabetic appearance to remain, but with the exception that the "Primary Element" first appears:
"Main Item"
"A Item"
"B Item"
"Y Item"
"Z Item"
, , pl/sql, , - .Net, IEnumerable, .