I have 2 lists of objects.
One is the list of 'all' objects, the second is the list of 'special' objects.
The first list contains all objects, including special objects.
How do I sort my list of 'all' objects, to order the objects in the following fashion: First 'special' objects, and then all the rest of the objects?
Each object has an id.
For example,
List 1:
[
{Id: 1, Name: "a", Surname: "a"},
{Id: 2, Name:"b", Surname:"b"},
{Id: 3, Name: "c", Surname: "c"}
]
List 2:
[
{Id: 2, Name:"b", Surname:"b"}
]
How do I order it, so the final list is:
[
{Id: 2, Name:"b", Surname:"b"},
{Id: 1, Name: "a", Surname: "a"},
{Id: 3, Name: "c", Surname: "c"}
]