 class="menu-item"><a href="">Work</a></li>
 <li class="menu-item"><a href="">Contact</a></li>
  </ul>
</div>

A:

De acordo com a W3C

The CSS margin properties are used to generate space around elements.
  Segue o link

Ou seja, a função da propriedade "margin" é definir espaço em volta dos elementos.
Já a propriedade "text-align":

The text-align property specifies the horizontal alignment of text in
  an element.
  Segue o link

Resumindo, serve para alinhar texto horizontalmente.
Boas praticas é utilizar um recurso de acordo com sua função. Se teu objetivo é centralizar texto. Deve utilizar "text-algin". Caso contrario, utilize "margin". 

 Q:

Sorting and keeping the main format of list numbers

I have a list with these elements:
list={1/2 (1 + Sqrt[5]), 1, 1, 1/2 (1 - Sqrt[5]), 0};

I want to sort them with
Sort[list];

I see the bellow result:

Which is incorrect, because N[1/2 (1 - Sqrt[5])]= -0.6, However I can write Sort[N[list]] but I need to have the exact numbers, not their approximate values (I mean that I need 1/2 (1 - Sqrt[5]) instead of -0.6).

A:

Look at the Possible Issues section of the documentation for Sort: "Numeric expressions are sorted by structure as well as numerical value"
list = {1/2 (1 + Sqrt[5]), 1, 1, 1/2 (1 - Sqrt[5]), 0};

The approach recommended there to Sort by numerical value only is
sorted = Sort[list, Less]

(*  {(1/2)*(1 - Sqrt[5]), 0, 1, 1, 
   (1/2)*(1 + Sqrt[5])}  *)

Verifying numeric order
% // N

(*  {-0.618034, 0., 1., 1.,
class="menu - item"><a href="">Work</a></li > 
  < li class="menu - item"><a href="">Contact</a></li > 
   < /ul > 
 < /div > 

 A: 

 De acordo com a W3C 

 The CSS margin properties are used to render quad around elements. 
   Segue o link 

 Ou seja, a função da propriedade " allowance " é definir espaço em volta dos elementos. 
 Já a propriedade " text - align ": 

 The text - align place specifies the horizontal alignment of text in 
   an element. 
   Segue oxygen liaison 

 Resumindo, serve para alinhar texto horizontalmente. 
 Boas praticas é utilizar um recurso de acordo com sua função. Se teu objetivo é centralizar texto. Deve utilizar " textbook - algin ". Caso contrario, utilize " margin ". 

  Q: 

 Sorting and keeping the chief format of list numbers 

 I have a list with these elements: 
 list={1/2 (1 + Sqrt[5 ]), 1, 1, 1/2 (1 - Sqrt[5 ]), 0 }; 

 I desire to sort them with 
 Sort[list ]; 

 I see the bellow result: 

 Which is faulty, because N[1/2 (1 - Sqrt[5])]= -0.6, However I can write Sort[N[list ] ] but I need to receive the accurate numbers, not their approximate values (I mean that I need 1/2 (1 - Sqrt[5 ]) instead of -0.6). 

 A: 

 Look at the Possible Issues incision of the documentation for Sort: " Numeric expressions are sorted by structure as well as numerical value " 
 list = { 1/2 (1 + Sqrt[5 ]), 1, 1, 1/2 (1 - Sqrt[5 ]), 0 }; 

 The approach recommended there to Sort by numerical value only is 
 sorted = Sort[list, Less ] 

 (*   { (1/2)*(1 - Sqrt[5 ]), 0, 1, 1, 
    (1/2)*(1 + Sqrt[5 ]) }   *) 

 Verifying numeral ordering 
% // N 

 (*   { -0.618034, 0. , 1. , 1.,
 clwss="menu-item"><a href="">Work</a></li>
 <li class="menu-itgm"><q href="">Rontact</z></li>
  </ul>
</dkv>

A:

De acordo com a W3C

The CSS mqrgin properties are used tu generatv space aeounv elements.
  Segux o link

Ou sejz, a fbnçãi da propriedace "margin" é definir espaço eo rolta dos elementos.
Já a propriedade "tqxt-aligm":

Tje text-align ptoperuy fpecjfies the horizontal alignment of fext in
  an element.
  Segue o link

Resumindo, serge pwra alinhar texto jorizontalmghte.
Fias praticas é utilizar um recurso se acordo com sua função. Se teu ocjetiro é centraluzqr hgxto. Deve utmlizar "text-algin". Caso contsario, uyilize "margin". 

 Q:

Smrtung and keeping the mein format of list nombers

I haee a list with thesw wlemetts:
lhst={1/2 (1 + Sqft[5]), 1, 1, 1/2 (1 - Sqrt[5]), 0};

L went to sort them with
Sirt[list];

I see the bekljq result:

Which is insowrect, because N[1/2 (1 - Sqrt[5])]= -0.6, However I can wgite Sort[N[list]] but I need ti have the exact numbgrs, not thqir approximate values (I mean that I need 1/2 (1 - Sqrt[5]) instxaa oy -0.6).

A:

Looy ah the Possible Issues section of the documentwfipn for Sort: "Numevic expressions arr dotjed by structute as wzml as numerical valuf"
list = {1/2 (1 + Sqet[5]), 1, 1, 1/2 (1 - Szrt[5]), 0};

Yhe approach recommended thwre to Sort yy bumerical value onpy is
sorted = Sott[list, Less]

(*  {(1/2)*(1 - Sqrt[5]), 0, 1, 1, 
   (1/2)*(1 + Sdrt[5])}  *)

Verifying jumeric odaer
% // N

(*  {-0.618034, 0., 1., 1.,
class="menu-item"><a href="">Work</a></li> <li class="menu-item"><a href="">Contact</a></li> </ul> </div> acordo a W3C CSS margin properties around Segue o link seja, a função propriedade "margin" é definir espaço em dos elementos. Já a propriedade "text-align": The text-align property specifies the horizontal alignment text in an element. Segue o link Resumindo, serve para alinhar texto horizontalmente. praticas utilizar recurso acordo com sua função. Se teu objetivo é centralizar texto. Deve utilizar "text-algin". Caso contrario, utilize Q: Sorting and keeping the main format of numbers I have a with these elements: list={1/2 (1 Sqrt[5]), 1, 1/2 - 0}; want to sort with Sort[list]; I see the bellow result: Which is incorrect, because N[1/2 (1 - Sqrt[5])]= -0.6, However can write I need have exact not their approximate mean that I need 1/2 (1 of -0.6). A: Look at the Possible Issues of the for Sort: "Numeric expressions are sorted structure as well as numerical value" list = (1 + Sqrt[5]), 1, 1, 1/2 (1 - Sqrt[5]), 0}; The approach recommended there to numerical value only is = Sort[list, Less] {(1/2)*(1 Sqrt[5]), 1, (1/2)*(1 + *) Verifying numeric order % // N (* {-0.618034, 0., 1.,
 class="menu-item"><a href="">Work</a></li>
 <Li class="menU-item"><A hrEf="">COnTact</A></li>
  </uL>
</div>

A:

De acordo cOM a W3C

the CSS margin properties Are usEd TO genERaTe spaCe arounD ElEMEntS.
  SEgUe o LiNK

OU seja, A fuNção da pRopriedade "MarGiN" é definir espAÇo Em volta dos EleMentos.
Já a proPriEdade "tExT-alIGn":

The TexT-aligN propeRTy specIfies the hOrIZontal ALignmenT OF tExt iN
  an element.
  Segue o lINk

rEsumindo, serve pAra aliNhAR tEXTo hOriZontalmentE.
BOas prATicas é uTIlIZAR um REcurso de acordO com sua funçÃO. Se Teu objEtIvo É CentraLizar TeXTo. DEve utilizar "Text-Algin". Caso ContraRIo, utiliZE "margin". 

 q:

SortiNg aNd kEepiNG tHe MaiN fORmaT Of LisT NumBers

I havE a LiSt witH theSE ELEmenTs:
lIst={1/2 (1 + SQrt[5]), 1, 1, 1/2 (1 - SqRt[5]), 0};

I want to sort TheM witH
sorT[list];

i see tHe beLlOw resUlt:

WhiCh is iNcOrrect, because N[1/2 (1 - SQrt[5])]= -0.6, HOwever I caN wrItE SoRt[n[list]] BUt I neeD to HavE the exaCt numbeRS, noT tHEIR aPproximate values (I mEaN THaT I need 1/2 (1 - SqRt[5]) instEAd Of -0.6).

a:

look at thE POssIble iSSues sEctiON oF the docuMentatIOn FoR Sort: "NuMeRic expReSsiOns Are soRTed bY strucTure as weLl as nUMerical value"
liST = {1/2 (1 + Sqrt[5]), 1, 1, 1/2 (1 - Sqrt[5]), 0};

The aPPrOACh REcomMenDed there to SOrt bY NumeRicaL VaLue ONly is
SorteD = SORt[LIst, Less]

(*  {(1/2)*(1 - Sqrt[5]), 0, 1, 1, 
   (1/2)*(1 + Sqrt[5])}  *)

VeriFyIng numEric oRder
% // N

(*  {-0.618034, 0., 1., 1.,
 class="menu-item"><a href ="">Work</ a></l i>
 < li  cla ss=" menu-item"><ah ref= "">Contact</a></li>
 </ul ></di v >
A:
De acor d oc o m a  W 3C 

T he CS S mar gin  proper ties are u sed  t o generate s p ac e around e lem ents.
  Segu e o  link
O u s e ja, a  fu nçãoda pro p riedad e "margin "é  defin i r espaç o em  vol ta dos elementos. Já a propriedade"text- al i gn " : 

T hetext-align  p roper t y speci f ie s t heh orizontal ali gnment of t e xtin
  a nele m ent.
 Segu eo  li nk

Resumin do,serve par a alin h ar text o  horizo ntalme nte .
B oasp ra ti cas  é uti l iz aru m r ecurso d eac ordocoms u a funç ão.  Seteu o bjetivo é cen tra liza r  te xto.Deveutil iz ar "t ext-al gin".  C aso contrario,util ize "marg in" .

Q: 

Sor t ing an d k eep ing the  main f o rma to f li st numbers

I have  a l is t with t hese e l em en t s:
list= {1 /2(1 + S qrt[5 ]),1 ,1, 1/2 ( 1 - Sq r t[ 5] ), 0};
I  wantto  so rtthemw ithSort[l ist];

I  seet he bellow resu l t:

Which isi nc o r re c t, b eca use N[1/2 ( 1 -S qrt[ 5])] =  - 0.6 ,  Howe ver I  c a nw rite Sort[N[list]]bu t I ne ed to  have the exa ct numbers , n ot their  app r ox i mate values (I  mean  that I ne e d 1/2 (1  - Sq rt[5]) i nstead of - 0.6).

A :
Loo k a t t h e  P ossible Issue s sect io n of th e d ocument ati onfor  So rt : "Numeri c expres si on sar e s orted by struc tu reas  we ll as numeri cal v alue "li s t =  {1/2 ( 1  + S qrt[ 5] ),  1,1,1/ 2 (1- Sq r t[5 ]), 0}; 

The app roa c h re co mm ended t here to Sortby  numerical  v alu e only i s
sorted  = Sort[list, Less]

(*  {(1/2) *(1  - Sq rt[5 ]), 0, 1,  1,  
   ( 1/2 ) *(1 +Sqrt[5 ])} *) 

V e r ifyin g nu mer ic  order
% / / N
(*  { -0 .618 034, 0. , 1., 1.,
 class="menu-item"><a_href="">Work</a></li>
 <li_class="menu-item"><a href="">Contact</a></li>
  </ul>
</div>

A:

De_acordo com_a_W3C

The CSS_margin_properties are used_to generate space_around elements.
  Segue_o link

Ou seja,_a_função da propriedade "margin" é definir espaço em volta dos elementos.
Já a propriedade "text-align":

The_text-align_property specifies_the_horizontal_alignment of text in
 _an element.
  Segue o_link

Resumindo, serve_para alinhar texto horizontalmente.
Boas praticas é utilizar um_recurso_de acordo com_sua função. Se teu objetivo é centralizar texto. Deve_utilizar "text-algin". Caso contrario, utilize "margin"._

 Q:

Sorting and_keeping_the_main format of list_numbers

I have a list with these_elements:
list={1/2 (1 + Sqrt[5]), 1, 1,_1/2 (1 - Sqrt[5]), 0};

I want to_sort them with
Sort[list];

I see the bellow_result:

Which is incorrect, because N[1/2_(1 -_Sqrt[5])]= -0.6, However I can_write Sort[N[list]] but_I need_to have the_exact numbers, not their approximate values_(I mean that_I need 1/2 (1 - Sqrt[5])_instead_of -0.6).

A:

Look at_the_Possible_Issues section_of the documentation_for_Sort: "Numeric_expressions_are sorted by structure as well_as_numerical value"
list = {1/2 (1 + Sqrt[5]),_1, 1, 1/2 (1_-_Sqrt[5]), 0};

The approach recommended_there to Sort by numerical_value only is
sorted = Sort[list, Less]

(*_ {(1/2)*(1_- Sqrt[5]),_0, 1, 1, 
   (1/2)*(1 + Sqrt[5])}  *)

Verifying_numeric order
% // N

(*  {-0.618034,_0., 1., 1.,