Extended regex for text input.
Implemented ordering by date ascending in select statements.