Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Sort

string System.Data.DataView.Sort
getsetinherited

Definition at line 283 of file DataView.cs.

284 {
285 get
286 {
287 if (_sort.Length == 0 && _applyDefaultSort && _table != null && _table._primaryIndex.Length != 0)
288 {
290 }
291 return _sort;
292 }
294 set
295 {
296 if (value == null)
297 {
298 value = string.Empty;
299 }
300 DataCommonEventSource.Log.Trace("<ds.DataView.set_Sort|API> {0}, '{1}'", ObjectID, value);
302 {
304 return;
305 }
307 if (string.Compare(_sort, value, ignoreCase: false, culture) != 0 || _comparison != null)
308 {
310 _comparison = null;
312 }
313 }
314 }
string FormatSortString(IndexField[] indexDesc)
IndexField[] _primaryIndex
Definition DataTable.cs:126
DataViewRowState _recordStates
Definition DataView.cs:68
void CheckSort(string sort)
Definition DataView.cs:618
Comparison< DataRow > _comparison
Definition DataView.cs:64
virtual void SetIndex(string newSort, DataViewRowState newRowStates, IFilter newRowFilter)
Definition DataView.cs:1342

Referenced by System.Data.DataView.DataView(), System.Data.DataView.ApplySort(), System.Data.DataView.ApplySort(), System.Data.DataView.EndInit(), System.Data.DataView.Equals(), System.Data.DataView.RemoveSort(), and System.Data.DataView.UpdateIndex().