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 9081701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:22:40+00:00 2026-06-16T20:22:40+00:00

I have problem with sorting elements by varchar containing Polish characters like ą, Ą.

  • 0

I have problem with sorting elements by varchar containing Polish characters like ą, Ą.

For example, we have following names:

Aaaa
BBcvx
Ąccc
Ddde
ądcc

Following query:

select * from something order by lower(name);

Returns result as this:

Aaaa
BBcvx
Ddde
ądcc
Ąccc

As you can see, polish characters are ignored and put at the end. It should be:

Aaaa
ądcc
Ąccc
BBcvx
Ddde

What might be the problem? Database encoding? Mine is:

SELECT * FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET';

Result:
EE8MSWIN1250

Can this be fixed without changing database encoding?

  • 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-16T20:22:41+00:00Added an answer on June 16, 2026 at 8:22 pm

    You need to look into the NLS_SORT parameter, specifically linguistic sorting. You can use this parameter to specify what language you’d like to sort by. I suspect in your case it would be POLISH.

    Something like this

    select *
      from something
     order by nls_lower(name, 'NLS_SORT' = 'POLISH')
    

    NLS_LOWER() returns a lower case character in the same manner as an ordinary LOWER().

    You could also do this at a session level, which would change the default sort parameter for the duration of the session.

    alter session set nls_sort = POLISH;
    

    If you wanted to always use this sort; this is done the database level when the database is created.

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

Sidebar

Related Questions

I have a problem with sorting... I need to sort NSArray containing NSDictionaries .
i have problem sorting the arrays.i have two problems. 1.Sorting rightArray with the following
I have the following problem. I have a set of elements that I can
I have a problem with sorting NSTableColumn contents. In my NSTableView there are three
I have a problem with sorting items in table in PHP. Here is what
I have a complex sorting problem with my SQL statement. I have a table
I have a problem on using LinqToSQL with paging + dynamic sorting. These are
basically i need some algorithm that fits into the following problem: i have 5
Consider the following problem. We are given an array of elements belonging to one
I have a problem with Gridview sorting that is similar to others but I'm

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.