How can I get all the order of a list? [closed]

I have a list such as : {1,3,6}, then, I want to get all the orders of it, I do not know which function is easier. I have to try this code, but it is complex.

a={1,3,6};
b=Table[0,6];
b[[1]]=a;
b[[2]]={a[[2]],a[[3]],a[[1]]};
b[[3]]={a[[1]],a[[3]],a[[2]]};
b[[4]]={a[[2]],a[[1]],a[[3]]};
b[[5]]={a[[3]],a[[1]],a[[2]]};


Such that. I want to get a simple code for this.

closed as off-topic by Bob Hanlon, Henrik Schumacher, Niki Estner, m_goldberg, b.gates.you.know.whatDec 16 '18 at 8:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Bob Hanlon, Henrik Schumacher, Niki Estner, m_goldberg, b.gates.you.know.what
If this question can be reworded to fit the rules in the help center, please edit the question.

Permutations[a]