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

  • SEARCH
  • Home
  • 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 9253055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:07:04+00:00 2026-06-18T11:07:04+00:00

I have an application making use of BreezeJs querying a standard WebApi controller backed

  • 0

I have an application making use of BreezeJs querying a standard WebApi controller backed by an EntityFramework and SQL store. When I use an order by clause, I wish NULL and empty string values to always be sorted last (for BOTH ascending and descending order).

In SQL or even EF server side this is not a difficult task. However, I’ve not been able to locate the documentation for BreezeJs which shows how this can be accomplished.

The ideal solution would be some way to modify my EF context so this is the default behavior when any Order By is detected, prior to query hitting the DB. Failing that, perhaps there’s a way I’ve missed in Breeze itself to specify how nulls are handled in the results.

Worst case, I’ll need to write two separate queries client side and merge the results, one for with and one without values in the specified column.

Suggestions?

  • 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-18T11:07:05+00:00Added an answer on June 18, 2026 at 11:07 am

    This is an interesting question.

    Breeze currently has a class called LocalQueryComparisonOptions that may be used to control whether client side ordering is case sensitive and whether string comparisons should be SQL92 compliant. The idea here is that this class should be used to match whatever ordering rules are used by whatever server implementation you have selected.

    It sounds like what you want is to also have the option to completely control local ordering of a query, probably by providing your own ordering function. If this is the case, please add this to the breeze User Voice and vote for it. This seems very reasonable and if it gets enough votes I think it makes sense to add it to the product.

    Note that you will still need to insure that EF ( or whatever backend you are using) adheres to these same ordering rules.

    Also, out of curiosity, how do you make EF always order nulls this way?

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

Sidebar

Related Questions

I have an ASP.NET MVC application, and I'm making use of EntityFramework 5.0. I've
I currently have an application making use of Authorize.net's ARB API. I have everything
I have inherited a LinqToSql application which is making use of GUID keys for
I have a Zend Framework application that is making use of jQuery UI. In
I have an application which is making use of the RSACryptoServiceProvider to decrypt some
I want to make an application making use of twitter's bootstrap framework. I have
i'm deploying an application making use of EJB. I'have wrote an EJB and a
I have a Silverlight 4 application where I am making use of shared classes.
I have a grails 1.3.7 application. I am making use of Spring's JMS classses
I have an application that is making use of the PhoneGap (version 1.4.1). It

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.