Development of a blog system using Codeigniter
Below is a simple order_by query in codeigniter which pulls off the data from the table \'Books\' and sort the result set by \'BookName\' field in alphabetical order. Also note that the query doesn\'t specify if \'BookName\' should be sorted in ascending or descending order. But by default MySQL DB sorts data in ascending order so the column will be sorted alphabetically.