title: How to sort decimal values in a data frame in R
body: <p>I have the following data frame.</p>
  
  <pre><code>           Ensembl_ID    GeneNames      score
            ENSG00000011422     PLAUR   39.5685
            ENSG00000078328     A2BP1  50.00768
            ENSG00000081803    CADPS2  64.84489
            ENSG00000105976       MET  97.11081
            ENSG00000106366  SERPINE1  48.43963
            ENSG00000108576    SLC6A4 164.60561
            ENSG00000114062     UBE3A  59.33749
            ENSG00000115840  SLC25A12  77.22506
            ENSG00000146938    NLGN4X  57.59011
            ENSG00000151067   CACNA1C  54.06404
            ENSG00000152969   JAKMIP1  57.64859
            ENSG00000162946     DISC1  53.13775
            ENSG00000164418     GRIK2  22.93073
            ENSG00000166206    GABRB3  92.59465
            ENSG00000166501     PRKCB 105.63476
            ENSG00000172893     DHCR7  99.53791
            ENSG00000174469   CNTNAP2 174.89443
            ENSG00000180914      OXTR  90.86565
            ENSG00000189056      RELN  85.79417
            ENSG00000196338     NLGN3  37.61191
            ENSG00000251322    SHANK3 172.93547
            ENSG00000259207     ITGB3 144.50998
  </code></pre>
  
  <p>I just use the following to sort the data frame</p>
  
  <pre><code>j_test &lt;- j[order(round(as.numeric(j$Raw_score)),decreasing = TRUE, na.last = TRUE), ]
  </code></pre>
  
  <p>It does the following. Any thing above 100 is ignored and appears down the list as below. I want it to be sorted correctly.</p>
  
  <pre><code>       Ensembl_ID GeneNames      Score
        ENSG00000172893     DHCR7  99.53791
        ENSG00000105976       MET  97.11081
        ENSG00000166206    GABRB3  92.59465
        ENSG00000180914      OXTR  90.86565
        ENSG00000189056      RELN  85.79417
        ENSG00000115840  SLC25A12  77.22506
       ENSG00000081803    CADPS2  64.84489
       ENSG00000114062     UBE3A  59.33749
       ENSG00000152969   JAKMIP1  57.64859
       ENSG00000146938    NLGN4X  57.59011
       ENSG00000151067   CACNA1C  54.06404
       ENSG00000162946     DISC1  53.13775
       ENSG00000078328     A2BP1  50.00768
       ENSG00000106366  SERPINE1  48.43963
       ENSG00000011422     PLAUR   39.5685
       ENSG00000196338     NLGN3  37.61191
       ENSG00000164418     GRIK2  22.93073
       ENSG00000174469   CNTNAP2 174.89443
       ENSG00000251322    SHANK3 172.93547
       ENSG00000108576    SLC6A4 164.60561
       ENSG00000259207     ITGB3 144.50998
  </code></pre>