Folks,
I'm using a UITableView to display my data. I load the rows with data from a SQLite table and each row has multiple properties. I need to sort my table rows based on the values in one of the property lists.
So, for example... each row is defined as follows:
public class MyTableItemGroup
{
public string Name {get; set;}
public string Footer {get; set;}
public List<string> IDs
{
get {return this._IDs; }
set {this._IDs = value; }
}
public List<string> Items
{
get {return this._items; }
set {this._items = value; }
}
protected List<string> _IDs = new List<string>();
protected List<string> _items = new List<string>();
}
I need to sort the rows based on the ITEMS list. Is this possible? I've tried using Linq. I've searched for other ways and nothing seems to work.
The reason I need to do this is because when I load the rows, I have conditional code that sets the "Items" list to a value from one of a couple fields returned from my SQL query. The problem is, I can't rely on a sort out of the SQL database because of the fact that the different fields are used.
Thanks, Bob