Getting the order of columns from the API

I was just wondering, is there a way to get the order of the columns as shown through the frontend using the API. Right now, when I try to get the columns it seems to return them in the order they were created.