how order by weigh in drupal sql statement

i have the following drupal sql. Wondering how would i order the following be weight

SELECT node.nid FROM node node  LEFT JOIN content_type_videoclip videoclip ON node.vid = videoclip.vid WHERE node.type in ('videoclip')
frosty1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JuamezCommented:
If you mean a simple SQL addendum, then you can add this to your query: ORDER BY <name of row> [ascending | descending (optional)]

By what row do you want to order the query exactly?
0
frosty1Author Commented:
yeah, i don't know where the weight col is in drupal. Where is this stored
0
JuamezCommented:
I don't know what you mean by weight. Is it a collection of criteria like filesize, video dimensions, ... ?
0
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

frosty1Author Commented:
in drupal, when you add an item to the menu you get give it a weight. it's basically says where in the menu it should go. So i want to use this value to order my select statement
0
JuamezCommented:
Oh I see! Maybe you can look in the code of the page that inserts the data into the database, look for the table and column where it puts the new value. I don't have drupal here myself now, so I can't look.
0
junipllcCommented:
The weight column you're looking for should be in the "menu_links" table, field name is "weight". It doesn't make 100% sense, I know, but I know when I've set up content using the Book content type that's where it was stored.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
junipllcCommented:
Were you able to find the weight you needed in that column?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Drupal

From novice to tech pro — start learning today.