The table command returns a table that is formed by only the fields that you specify in the arguments. Columns are displayed in the same order that fields are specified. Column headers are the field names. Rows are the field values. Each row represents an event.
Index=farmanimals | table cows, chickens, pigs it will display the table also in that order.
Is it not the case with your query?