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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:07:40+00:00 2026-05-14T07:07:40+00:00

I have an object with different values that is name,nameid, lifebeging,lifeEndiging …. etc, for

  • 0

I have an object with different values that is name,nameid, lifebeging,lifeEndiging …. etc,

for loop
{
    // here i will get name, ids, other value for each object
    Search *Obj=[artistslist objectAtIndex:i];
}
0 obj.name=  //string values1 get from parser
1 obj.name=   //string values1
2 obj.name=  //string values1
3 obj.name=  //string values1
4 obj.name=  //string values1

I am getting values in the artistList then i need to sort only by name not other feilds

when i use this below statement

[artistsList sortUsingSelector:@selector(NSOrderedAscending:)];

i am getting exception here ,it is not working.

  • 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-05-14T07:07:40+00:00Added an answer on May 14, 2026 at 7:07 am

    NSOrderedAscending is not a selector, it’s an enumeration constant and is one of the three possible return values the selector you do specify should return. For NSStrings, caseInsensitiveCompare: is a good one, or as jrtc27 suggests localizedCaseInsensitiveCompare: if you are sorting to present to the user. If not a string, you can define your own method that compares two objects and returns NSOrderedAscending, NSOrderedDescending or NSOrderedSame.

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

Sidebar

Related Questions

I have an object in a list that I need to rank several different
I have an object that I added to a few different ArrayLists. I wanna
I have one video object and 3 thumbnails which, when clicked, will play different
I have a parameter hash that contains different variable and name pairs such as:
I want to push many objects into a array and each object have different
I have 2 object. In different depths of MovieClip. I would like to know
I'd like to have multiple versions of an object with different access modifiers on
It's common to have an object used application wide. What are the different patterns
I need to create an array using a object using different format/structure I have:
I have a base class object array into which I have typecasted many different

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.