Question: how to sort dbgrid in delphi?
Answer: Sort on Column Click and Change the Column Title Font Simply set the Sort property to the name of a single field or to a comma-separated list of fields, each following the sort order. The OnTitleClick event of the DBGrid component has a Column parameter indicating the Column the user has clicked on.