private int internalCompare(SimpleWorker a, SimpleWorker b) { if (a.Priority.Value > b.Priority.Value) { return 1; } else if (a.Priority.Value < b.Priority.Value) { return -1; } else { return 0; } }
public void AddWorker(SimpleWorker worker) { _workers.Add(worker); }