Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8184991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:41:33+00:00 2026-06-07T01:41:33+00:00

In Magento, when using non eav collections what is the best way to add

  • 0

In Magento, when using non eav collections what is the best way to add sort orders?

With eav collections i believe there are convenience methods for doing this but with non eav there dont appear to be the same facilities.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:41:35+00:00Added an answer on June 7, 2026 at 1:41 am

    Both Magento collection superclasses (Mage_Core_Model_Resource_Db_Collection_Abstract and Mage_Eav_Model_Entity_Collection_Abstract) inherit three public convenience methods from the collection superclass Varien_Data_Collection_Db:

    • setOrder()
    • addOrder(), an alias for setOrder()
    • unshiftOrder(), for moving a sort parameter to the first position

    The EAV collection superclass provides another method, addAttributeToSort(), which ensures that the attribute is joined on to the collection for sorting.

    As Vinai has pointed out on his tumblr, there are some considerations in how and when these methods will behave.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Magento Community Edition ver. 1.6.2.0. I’m trying to add a Simple product
I am using Magento for my online store. Now i need to add a
The way I am using Magento is like this: We are using Magento admin/dashboard
I'm using Magento ver. 1.6.1.0 I'd like to add 8lbs to each order (packing
I added a custom eav attribute to my Magento application product entity using an
I am using Magento var-1.6 I need to add a new template(.html) file to
How have I to add a product into Magento using a php function? I
I'm using magento 1.7, and one of the payment options is Paypal (UK) express
I am using Magento community ver1.6.1.0. I found this state diagram on Magento wiki
We are using Magento as our eCommerce platform. We have Oracle apps in which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.