Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
How to create a map puts numbers in order

Hi I'm looking to create a map in node.js where I'm able to put numbers in ranking order so for example 14, 10 and 5 in a list order where #1 takes the highest number and #3 the lowest number For example:

Rank Numer
#1 14
#2 10
#3 5

As you can see I'm wanting 14 the largest number therefore rank #1 and so forth.I'm going to be fetching my numbers from table in postgres.

My SQL query looks like this:

pool.query('SELECT total_xp FROM levels WHERE guild_id = $1 AND user_id = $2', [message.guild.id, member.id])

If anyone can help me on how I can achieve this help would be appreciated.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!