Question: I have a problem with sorting my sentence values ​​in descending order:  

I typed this command in unix:

```
sort fileInput -t"(" -k2r >fileSort 

```

Here's the input file:

```
comité de conciliation de décision du parlement européen et du (0.00098379)
les amendements CARD CARD CARD CARD CARD CARD et CARD (-0.00025165)
la protection des consommateurs sur la proposition de directive du (0.00077120)

```

and here's the output file:

```
comité de conciliation de décision du parlement européen et du (0.00098379)
les amendements CARD CARD CARD CARD CARD CARD et CARD (-0.00025165)
la protection des consommateurs sur la proposition de directive du (0.00077120)

```

The file is not well sorted
Any idea please?

Answer: 
Add `-n` and `-g` options for numeric sort like this:

```
sort -t"(" -ngk2r 

```
use -rk2 instead of -k2r, that is

```
sort fileInput -t"(" -k2r >fileSort 

```