arrow_back
Back to Tickets
Edit Trouble Ticket
Update the ticket information below
Date Initiated
*
Status
*
Open
Pending
Completed
Terminated
Creator
*
Priority
*
1
Urgent
Select urgency...
Urgent
Not Urgent
Important
Select importance...
Important
Not Important
Project Name
*
zfrika
Problem
*
sort the messages
Question
Root Cause
Notes
Strategy
Helpful People
Helpful Links
Diagram
Previous Steps
Next Steps
sort messages is input messaging-system.js in public/script. what function handles the order of the files? loadMessages gets the messages. we want to sort by timestamp. can we sort by timestamp in the routes before we pass the data? are they being sorted by createdAt ? const results = await Message.find({datatoken:datatoken}).sort({ createdAt: -1 }).lean(); const results = await Message.find({datatoken:datatoken}).sort({ createdAt: -1 }).lean(); changed createAt to timestamp. because createAt doesnt exist int he messages table only timestamp.
Solution
Insight
Date Resolved
save
Update Ticket
Cancel