Fix test_function.py so it doesn't depend on order of function creation.

 * tests/dbobject/test_function.py
   (AggregateToSqlTestCase.test_create_aggregate_init_final): Sort
   CREATE FUNCTION statements before comparing them.