LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sort remeining energy in neighbor table (https://www.linuxquestions.org/questions/linux-newbie-8/sort-remeining-energy-in-neighbor-table-4175575063/)

deepika721 03-16-2016 12:27 PM

sort remeining energy in neighbor table
 
hey everyone..
i add a new field energy in neighbor table. This field includes remaining energy of each node and stored in the neighbor table. Now I want to sort the table based on energy field in descending order. please help me in doin this??

schneidz 03-16-2016 12:29 PM

assuming mysql:
Code:

mysql -u deepika721 node 'select energy from neighbor order by enrgy desc;'
change the username and database name where appropriate.

deepika721 03-16-2016 12:43 PM

i want to do this in ns2..


All times are GMT -5. The time now is 03:43 AM.