I think it must be a perl problem, cause everyone here, and everyone I've talked to says the same thing. If you can reverse sort it, you can sort it.
Is there a way to sort the file itself (database.txt) after I add a new record but keeping the header row in place? I guess I could do it that...