fix case sensitive columns

add best effort ordering of variables where metridoc sql tries to
properly order and match column headers regardless of case.