Use ORDER BY ...
Patients.patlist = DBUtils.ExecuteMemoryTable(SQL,"SELECT * FROM Patients ORDER BY NAME",Null,0)
If need invert order:
Patients.patlist = DBUtils.ExecuteMemoryTable(SQL,"SELECT * FROM Patients ORDER BY NAME DESC",Null,0)
Can combine more fields
Patients.patlist = DBUtils.ExecuteMemoryTable(SQL,"SELECT * FROM Patients ORDER BY NAME, PHONE ",Null,0)
And combine inverted
Patients.patlist = DBUtils.ExecuteMemoryTable(SQL,"SELECT * FROM Patients ORDER BY NAME DESC, PHONE ",Null,0)