Building a TODO list in PHP

When sort menu is opened, show the following options "(A)-Z, (Z)-A".
When a sort type is selected, order the TODO list accordingly and
display the results.