return connection correctly and remove debug statement
require json everywhere to prevent load errors
force the sort order to be asc just in case