You can use basic ASCII Text editors to write PHP code. You simply need to save the file with the .php extension.
You can sort arrays by key with ksort() and krsort().
You can use PHP to INSERT data into MySQL Tables. This data can come from HTML forms, or things such as scripts that parse text documents. phpInsert.php