Documentation: sorting - compare: ... options and arguments

Ok, I obviously do not know how to locate specific items in the Apple Documentation.
I've already spent a couple of hours looking at class references with no success.
Can someone help me out.
All I want is to know how to do a simple REVERSE / descending sort comparison.  (and how to look it up in the documentation)
Here is the line in my code to do a simple, Ascending sort:
        NSArray * sortedKeysArray = [iams keysSortedByValueUsingSelector:@selector(compare:)];
How do I turn that into a reverse sort, or a descending sort?
All I can find is things like:
compare:
Returns an NSComparisonResult value that indicates whether the receiver is greater than, equal to, or less than a given number.
- (NSComparisonResult)compare:(NSNumber *)aNumber
Parameters
aNumber
The number with which to compare the receiver.
This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of Mac OS X.
Return Value
NSOrderedAscending if the value of aNumber is greater than the receiver’s, NSOrderedSame if they’re equal, and NSOrderedDescending if the value of aNumber is less than the receiver’s.
OR
SEL and @selector
Compiled selectors are assigned to a special type, SEL, to distinguish them from other data. Valid selectors are never 0. You must let the system assign SEL identifiers to methods; it’s futile to assign them arbitrarily.
The @selector() directive lets you refer to the compiled selector, rather than to the full method name. Here, the selector for setWidth:height: is assigned to the setWidthHeight variable:
OR
keysSortedByValueUsingComparator:
Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block.
- (NSArray *)keysSortedByValueUsingComparator:(NSComparator)cmptr
Parameters
cmptr
A comparator block.
OR
keysSortedByValueUsingSelector:
Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values.
- (NSArray *)keysSortedByValueUsingSelector:(SEL)comparator
Parameters
comparator
A selector that specifies the method to use to compare the values in the dictionary.
The comparator method should return NSOrderedAscending if the dictionary is smaller than the argument, NSOrderedDescending if the dictionary is larger than the argument, and NSOrderedSame if they are equal.
OR
NSComparisonResult
These constants are used to indicate how items in a request are ordered.
enum {
   NSOrderedAscending = -1,
   NSOrderedSame,
   NSOrderedDescending
typedef NSInteger NSComparisonResult;
Somewhere I also saw an example where it gave me a block of code to do the simple comparisons to respond with NSOrderd(Same/Ascending/Descending), but I cannot believe that I have to write my own reverese sort algorithm.  Right now, I cannot even find that documentation again.
And, yes, I cound just sort it normally, and get the count of array elements and then index from the end of the array.
But i think all that extra code would be ugly, and I'd like some simple CLEAN code.
I simply want to get an array, and examine the first 4 or 5 elements, sorted largest to smallest from the values in a dictionary,
(Sorry if I sound frustrated.  I can't believe it is so difficult to find what I'm looking for.)
Any help or pointers will be appreciated.

Ok, I found the Block method, example I mentioned:
Listing 6  Blocks ease custom sorting of dictionaries
NSArray *blockSortedKeys = [dict keysSortedByValueUsingComparator: ^(id obj1, id obj2) {
     if ([obj1 integerValue] > [obj2 integerValue]) {
          return (NSComparisonResult)NSOrderedDescending;
     if ([obj1 integerValue] < [obj2 integerValue]) {
          return (NSComparisonResult)NSOrderedAscending;
     return (NSComparisonResult)NSOrderedSame;
but that seems like a lot when all I want is to let the selector  compare:  do it's thing, in descending order.So I could do the following, just reversing the greater-than and less-than comparisons...
NSArray *blockSortedKeys = [dict keysSortedByValueUsingComparator: ^(id obj1, id obj2) {
     if ([obj1 integerValue] < [obj2 integerValue]) {
          return (NSComparisonResult)NSOrderedDescending;
     if ([obj1 integerValue] > [obj2 integerValue]) {
          return (NSComparisonResult)NSOrderedAscending;
     return (NSComparisonResult)NSOrderedSame;
Still, I'd like to find a complete description, with examples of using the compare: selector, and how to provide options or ordering in a simple manner without having to re-code things that (I have to believe) already exist.
Thanks in advance for pointers to the documentation.....
Or am I just going about this sorting thing the wrong way?

Similar Messages

  • Sort array list and using comparable

    With the following code I would like to setup a score object for the current player.
    Change it to a string(Is it correct to say parse it to a string type)
    Then add it to the arraylist.
    So I can sort the array list according to the string size.
    That's why I have the variables in that order.
    So if 3 players have the same amount of guesses, they can be positioned on the high score list according to their gameTime.
    //create score object
                   Score currentScore = new Score(guessCount, gameTime, name);
                   String currentScoreToString = currentScore.toString();
                   //add score to arrayList
                   scores.add(currentScoreToString);So the error message says " The method add(Score) in the type arrayList <Score> is not applicable for the arguments(string)"
    Now, I understand that, I would like to know if there is another way to achieve what I am trying to do.
    Is the string idea I am trying here possible? is it practical or should I use comparable?
    I have looked at comparable, but I don't get it.
    Will my Score class implement comparable. I am looking at an example with the following code.
    Employee.java
    public class Employee implements Comparable {
        int EmpID;
        String Ename;
        double Sal;
        static int i;
        public Employee() {
            EmpID = i++;
            Ename = "dont know";
            Sal = 0.0;
        public Employee(String ename, double sal) {
            EmpID = i++;
            Ename = ename;
            Sal = sal;
        public String toString() {
            return "EmpID " + EmpID + "\n" + "Ename " + Ename + "\n" + "Sal" + Sal;
        public int compareTo(Object o1) {
            if (this.Sal == ((Employee) o1).Sal)
                return 0;
            else if ((this.Sal) > ((Employee) o1).Sal)
                return 1;
            else
                return -1;
    ComparableDemo.java
    import java.util.*;
    public class ComparableDemo{
        public static void main(String[] args) {
            List ts1 = new ArrayList();
            ts1.add(new Employee ("Tom",40000.00));
            ts1.add(new Employee ("Harry",20000.00));
            ts1.add(new Employee ("Maggie",50000.00));
            ts1.add(new Employee ("Chris",70000.00));
            Collections.sort(ts1);
            Iterator itr = ts1.iterator();
            while(itr.hasNext()){
                Object element = itr.next();
                System.out.println(element + "\n");
    }The thing I don't understand is why it returns 0, 1 or -1(does it have to do with the positioning according to the object is being compared with?)
    What if I only use currentScore in a loop which loops every time the player restarts?
    //create score object
                   Score currentScore = new Score(guessCount, gameTime, name);
                   String currentScoreToString = currentScore.toString();
                   //add score to arrayList
                   scores.add(currentScoreToString);Also why there is a method compareTo, and where is it used?
    Thanks in advance.
    Edited by: Implode on Oct 7, 2009 9:27 AM
    Edited by: Implode on Oct 7, 2009 9:28 AM

    jverd wrote:
    Implode wrote:
    I have to hand in an assignment by Friday, and all I have to do still is write a method to sort the array list. Okay, if you have to write your own sort method, then the links I provided may not be that useful. They show you how to use the sort methods provided by the core API. You COULD still implement Comparable or Comparator. It would just be your sort routine calling it rather than the built-in ones.
    You have two main tasks: 1) Write a method that determines which of a pair of items is "less than" the other, and 2) Figure out a procedure for sorting a list of items.
    The basic idea is this: When you sort, you compare pairs of items, and swap them if they're out of order. The two main parts of sorting are: 1) The rules for determining which item is "less than" another and 2) Determining which pairs of items to compare. When you implement Comparable or create a Comparator, you're doing #1--defining the rules for what makes one object of your class "less than" another. Collections.sort() and other methods in the core API will call your compare() or compareTo() method on pairs of objects to produce a sorted list.
    For instance, if you have a PersonName class that consists of firstName and lastName, then your rules might be, "Compare last names. If they're different, then whichever lastName is less indicates which PersonName object is less. If they're the same, then compare firstNames." This is exactly what we do in many real-life situations. And of course the "compare lastName" and "compare firstName" steps have their own rules, which are implemented by String's compareTo method, and which basically say, "compare char by char until there's a difference or one string runs out of chars."
    Completely independent of the rules for comparing two items is the algorithm for which items get compared and possibly swapped. So, if you have 10 Whatsits (W1 through W10) in a row, and you're asked to sort them, you might do something like this:
    Compare the current W1 to each of W2 through W10 (call the current one being compared Wn). If any of them are less than W1, swap that Wn with W1 and continue on, comparing the new W1 to W(n+1) (that is, swap them, and then compare the new first item to the next one after where you just swapped.)
    Once we reach the end of the list, the item in position 1 is the "smallest".
    Now repeat the process, comparing W2 to W3 through W10, then W3 to W4 through W10, etc. After N steps, the first N positions have the correct Whatsit.
    Do you see how the comparison rules are totally independent of the algorithm we use to determine which items to compare? You can define one set of comparison rules ("which item is less?") for Whatsits, another for Strings, another for Integers, and use the same sorting algorithm on any of those types of items, as long as you use the appropriate comparison rules.Thanks ;)
    massive help
    I understand that now, but I am clueless on how to implement it.
    Edited by: Implode on Oct 7, 2009 10:56 AM

  • IComparable (CompareTo takes one argument) and IComparer ( Compare takes two arguments)

    I was looking at the MSDN article
    https://support.microsoft.com/en-us/kb/320727 on IComparable and IComparer. IComparable provides default sort order and IComparer provides custom sort order.
    ICompareable interface requires that CompareTo method and takes one argument
    IComparer interface requires that Compare method be implemented and takes two arguments
    My question is : I can understand comparing two arguments, because we are comparing two objects / strings / int whatever the case be. But I don't understand IComparable Compare method which takes one argument, what is being compared with what? Below is the
    code from the article.
    int IComparable.CompareTo(object obj)
    car c = (car)obj;
    return String.Compare(this.make, c.make);
    The this instance of the class is compared with the object obj based on the make. I guess I don't understand where are the two entries picked up from and in what order. Because this means the current instantiated class holding the current entry, then
    what is the object? This is probably implementation detail on how the Sort works on the array. But I for some reason feel that the method with two arguments is intuitive as in IComparable Compare method

    When there is a comparison job, it can be performed in two ways. You ask the object itself (i.e. the comparable) for the result. It then compares itself with the compared object and gives the result. Another way is to employ a judge. You give him the two
    objects being compared together and ask him for the result.
    When implementing IComparable<T> in a class, you want the class itself give you the result. The advantage of this approach is that, you don't need another object to compare the result as a judge. Comparison is done implicitly. However, the limitation
    of this approach is that, you can implement the interface only once in a class.
    The second approach has more flexibility, because you can change the judge and employ any judge as you want to give you the proper result. However, you need to create an instance of the IComparer<T> and use it explicitly to perform the comparison.

  • Sort Icon/option in ALV tree repot using classes and methods

    Hi all,
    I have done an alv tree report using the class cl_gui_alv_tree
    and i need to let users re-sort the report by using a sort icon(as visible in a normal alv report).Is there any possibility to create an icon and set the functionality such that the entire tree structure gets resorted depending upon the sort criteria?Please give me an example of doing so if there is an option.

    if u want without classes then i can  give an example of Sort Icon/option.
    example:-
    DATA:   wa_sortinfo TYPE slis_sortinfo_alv.
           i_sortcat TYPE slis_t_sortinfo_alv.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program     = report_id
                i_grid_title           = ws_title
               i_callback_top_of_page = 'TOP-OF-PAGE'
                is_layout              = wa_layout
                it_fieldcat            = i_fieldcat[]
                it_sort                = i_sortcat
                i_save                 = 'A'
                it_events              = i_events
           TABLES
                t_outtab               = i_reportdata1
           EXCEPTIONS
                program_error          = 1
                OTHERS                 = 2.
      IF sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM sortcat_init CHANGING i_sortcat.
    FORM sortcat_init CHANGING i_sortcat TYPE slis_t_sortinfo_alv.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'EBELN'. (sales order)
      wa_sortinfo-tabname = 'I_REPORTDATA1'.
      wa_sortinfo-spos = 1.            " First sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'EBELP'.
      wa_sortinfo-tabname = 'I_REPORTDATA1'.
      wa_sortinfo-spos = 2.            " Sec sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
    ENDFORM.                    " sortcat_init

  • Custom XML IP PHONE text on "Your current options" and softphone button

    how maually or reconfigure the Custom text on "Your current options" and softphone button on the call manager 7.0 ?
    There is no documentation ?

    Hello, Please try this link
    http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/7906g_7911g/5_0/sip/english/administration/guide/11ag50si.pdf

  • How can I sort all files and folders by size?

    Due to lack of space I need to find the biggest files and folders on my Mac OSX Mountain Lion, but "Size" is not in the Find options.
    And I don't know the wildcard to sort all files and folders by size in Easyfind.
    Thanks
    Sarah

    There are applications out there which are designed to show you files and the space they use.  Some of these applications and some strategies for making more room on your disk are given below.
    Freeing Up Hard Disk Space
    Freeing space on your Mac OS X startup disk
    Clearing Disk Space on Your Mac
    Seven ways to free up drive space

  • Sort by Path and Filename - What does a guy have to do?

    Hello all,
    First post here and such, but as the title reads. I have been using iTunes since early versions of 7 when I aquired my used 2gen Mini.
    In a past incident where people were attaching viruses to the ID3 Tags (see: http://en.wikipedia.org/wiki/Talk:ID3#Virusesin_ID3tags) I took the liberty (stupidity) of stripping all my ID3 tags from my music directory due to that security fault at the time, but also because all of them (the tags) were horridly inputted to the files.
    As iTunes users we can see the bad mistake I made, so now when I add a folder/directory to iTunes they just get sent to the bottom of the iTunes 'music list'.
    'Sort by path and Filename' would do wonders in organization of these untagged files. When adding an entire genre or folder, all **** breaks loose and there are the typical 40 tracks of '01 - songname' '02 - songname' and so on.
    This is where the rant part comes in. Here we are on Version 7.4.3.1 and Apple still hasnt added this minute feature to iTunes.
    I have to use Yahoo! Musicmatch (yuck) to sort and rename my files, only then to re-import them back into iTunes. I dont really care for that software (yahoo) for anything except sorting. Because it adds the actual folder to the viewable list and allows for batch renaming of directories and ID3 Tag renaming of entire albums/directories. I am not so concerned over the actual filename itself, but at least sorting by Path in iTunes would be nice so that I could give the files their proper ID3 Tags.
    Cmon Cupertino, this one isnt that hard.
    Thank you for your time.
    6

    You have several options -- two of which I'll outline below (neither built-in to iTunes, sorry)
    1) Use an external program to write ID3 tags based on the path/filename. One such program is "MP3Tag" (http://mp3tag.de/en)
    2) I wrote a program that with put the path in the Description field. You select the playlist -- then for every track in the playlist it changes the Description to the path. NOTE: I do NOT recommend that you select the "Library" playlist because it will overwrite existing descriptions for TV Shows, podcasts, etc. You can limit it to music by selecting the "Music" playlist.
    EXE version:
    http://home.comcast.net/~teridon73/itunesscripts/itunespathdescription.zip
    source code:
    http://home.comcast.net/~teridon73/itunesscripts/itunespathdescription.pl
    If you use my program, and it works for you, please consider a Paypal donation at my home page (http://home.comcast.net/~teridon73/itunesscripts/)

  • I can select a rating and a color label for my images, but I can not sort by rating and color label.

    I can select a rating and a color label for my images, but I can not sort by rating and color label. when I click on the filter drop down, color label is not one of the options.  how do I get both ratings and color lables as an option to sort with.

    You can Filter (not sort) on both color label and rating if you want, open the Filter Bar with the backslash key, then click on Attribute, and then select the stars and color label of interest. If you really meant "sort" and not filter, then you can't do this in Lightroom.

  • Sort Order option disabled when using OBIEE analysis?

    Hi everyone
    I've build a BIP report using the online layout editor.  My data model is based on an existing OBIEE analysis. When I go into the data model and go into the properties of a column, the Sort Order option is somehow defaulted to "No Ordering" and the dropdown menu is actually disabled, so I can't change anything.  Is this normal/expected functionality or am I missing something somewhere?
    Thanks

    I don't think it is possible. Here are the sort statements in this program.
    <u>Without Serialization</u>
    sort t_idoc_control_r
      by sndprn sndprt sndpfc mestyp
         mescod mesfct test serial.
    <u>With Serialization</u>
    sort t_idoc_control_s
      by sndprt sndprn obj_type chnum chcou.
    In neither of them, the document number is used. There is no guarantee that they will be processed in the document number order, even if serialization is used.
    Regards,
    Srinivas

  • Select-options and ranges

    Hi all,
    Belated Happy Holi.
    Can u  explain me the difference between
    Select-options and ranges?
    When, where and how to use them ?
    I know the basic differences, but i need to know in deep .
    could u give me the informatin with a scenario please ?
    Thanks in advance
    Ravi

    HI
    <u>SELECT-OPTIONS:</u> Declare an internal table that is also linked to input fields on a selection screen
    <u>RANGES:</u> Declare an internal table with the same structure as in select-options, but without linking it to a selection screen.
    FOR FURTHER DOCUMENTATION PLEASE GO THROUGH THE LINK
    <a href="http://72.14.203.104/search?q=cache:btyoj86smhEJ:www.sap-img.com/abap/difference-between-select-options-ranges.htmSelect-optionsandrangesIN+ABAP&hl=en&gl=in&ct=clnk&cd=1">Difference Between Select-Options & Ranges</a>
    <a href="http://72.14.203.104/search?q=cache:EJgiHLpghDEJ:help.sap.com/saphelp_nw04/helpdata/en/fc/eb3034358411d1829f0000e829fbfe/content.htmSelect-optionsandrangesIN+ABAP&hl=en&gl=in&ct=clnk&cd=4">Statical Declaration</a>
    <a href="http://72.14.203.104/search?q=cache:VWS1erlabRIJ:help.sap.com/saphelp_nw04/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htmSelect-optionsandrangesIN+ABAP&hl=en&gl=in&ct=clnk&cd=5">Selection tables</a>
    REGARDS
    ANOOP
    Message was edited by: ANOOP R.S

  • Passing SELECT-OPTIONS and Internal Tables to SUBROUTINES

    Hi Guys
    In the code below my colleague has created her own table types in order to pass a select option and internal tables to her subroutine. Is there an easier way of making them known to the subroutine.
    data : v_vbeln type vbeln_vf,
          it_bdoc type table of vbrp,
          it_t006 type table of t006a,
          wa_bdoc type vbrp,
          wa_t006 type t006a,
          it_bdoc2 type table of zsswathi_st_vbeln,
          wa_bdoc2 type zsswathi_st_vbeln
    select-options s_vbeln for v_vbeln matchcode object zswathi_vbeln obligatory.
    start-of-selection.
    perform bdoc using s_vbeln[]
                 changing it_bdoc
                          it_bdoc2
                          it_t006.
      loop at it_bdoc2 into wa_bdoc2.
    form bdoc using f_s_vbeln type ZSWATHI_ST_SELECT_OPTION_TA_TY       " all these are table types. for select options, a structure is created and then a table type for it is created.
            changing f_it_bdoc type zswathi_vbrp_ty_ta
                     f_it_bdoc2 type zswathi_vbeln_ty_ta
                      f_it_t006 type ZSWATHI_T006_TA_TY.
    select * from vbrp into table f_it_bdoc where vbeln in f_s_vbeln.
          if f_it_bdoc is not initial.
          select  vbeln sum( netwr ) prsdt from vbrp into table f_it_bdoc2 where vbeln in f_s_vbeln group by vbeln prsdt.
          sort f_it_bdoc2 by vbeln.
          "select * from t006a into table it_t006 for all entries in it_bdoc where msehi = it_bdoc-vrkme.
          select * from t006a into table f_it_t006 for all entries in f_it_bdoc where msehi = f_it_bdoc-vrkme.
       endif.
        endform.

    Hi Brett,
    1. you can use a select-options-range in a FORM subroutine also without passing it as a parameter because parameters and select-option range tables are global fields in their program.
    2. If you need a parameter, declare it as type table or type standard table or type any table. You do not need any special table type.
    Regards
    Clemens

  • Macro to compare CSV and Excel file

    Team,
    Do we have any macro to compare CSV and Excel file.
    1) In Excel we should have two text boxes asking the user to select the files from the path where they have Stored
    2) First Text is for CSV file
    3) Second Text box is for Excel file
    4) We Should have Compare button that should run the Macro and Show the Differences.
    Thanks!
    Kiran

    Hi
    Based on my understanding, we need to convert the 2 files into the same format before comparing two different formats files. 
    Here are the options:
    1. Convert the CSV file and Excel file into 2-dim Arrays, then compare them, about how to load a CSV file into VBA array, you can search it from
    internet or ask a solution in VBA forum.
    VBA forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=isvvba
    2. Also you can import CSV file to Excel sheet, and then compare them.
    Here is the sample code for your reference:
    ‘import csv file
    Sub InputCSV()
    Dim Wb As Workbook
    Dim Arr
    Set Wb = GetObject(Application.GetOpenFilename("csv file,*.csv", , "please choose a csv file", , False))
    Arr = Wb.ActiveSheet.Range("A1").CurrentRegion
    Wb.Close False
    Range("A1").Resize(UBound(Arr), UBound(Arr, 2)) = Arr
    End Sub
    ‘compare sheet
    Sub CompareTable()
    Dim tem, tem1 As String
    Dim text1, text2 As String
    Dim i As Integer, hang1 As Long, hang2 As Long, lie As Long, maxhang As Long, maxlie As Long
     Sheets("Sheet1").Select
    Columns("A:A").Select
    With Selection.Interior
    .Pattern = xlNone
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    Range("A1").Select
    Sheets("Sheet2").Select
    Rows("1:4").Select
    With Selection.Interior
    .Pattern = xlNone
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    Range("A1").Select
    MaxRow = 250
    MaxColumn = 40
    For hang1 = 2 To maxhang
    Dim a As Integer
    a = 0
    tem = Sheets(1).Cells(hang1, 1)
    For hang2 = 1 To maxhang
    tem1 = Sheets(2).Cells(hang2, 1)
    If tem1 = tem Then
    a = 1
    Sheets(2).Cells(hang2, 1).Interior.ColorIndex = 6
    For lie = 1 To maxlie
    text1 = Sheets(1).Cells(hang1, lie)
    text2 = Sheets(2).Cells(hang2, lie)
    If text1 <> text2 Then
            Sheets(2).Cells(hang2, lie).Interior.ColorIndex = 8
    End If
    Next
    End If
    Next
    If a = 0 Then
    Sheets(1).Cells(hang1, 1).Interior.ColorIndex = 5
    End If
    Next
    Hope this will help.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Where is the documentation of the options on the 'System Services' settings screen?

    The settings screen Settings ▸ Location Services ▸ System Services in iOS 5.0 contains the following boolean options:
    Cell Network Search
    Compass Calibration
    Diagnostics & Usage
    Location-Based iAds
    Setting Time Zone
    Traffic
    I have never used an iPhone before and do not understand what each of these services do. Where can I find Apple's documentation of these options?

    As I say, I've disabled all of them and see no need for any of them.
    As far as I have been able to determine these are being used to build up location based databases for use in advertising, marketing and other commercial uses:
    Cell Network Search - tracks the cell towers you are connected to and your location to aid in building up a database of cell phone tower locations and useage
    Compass Calibration - this one I have no idea about.  It is absolutely not necessary for the actual act of calibrating your compassapp, and your compass app works fine with it disabled.  Why anyone would find it useful to know where I was when I had to calibrate my compass, I have no idea.
    Diagnostics & Usage - this one is obvious, and is used to tag your location if you have chosen to send diagnostic and usage information to Apple.  I can see where it might help them to know where you were when you had some issue (ie. so they could see if the area correlates with frequent network errors or such)
    Location-Based iAds - also obvious, but I don't want marketers targeting me with ads based on where I am,  I find internet advertising far too intrusive as it is, I have no desire to aid them in pestering me even more.
    Setting Time Zone - this one I don't get.  If you have data & time set to "automatic" this is pointless, as they date and time (and hence time zone) will be set by your devices connection to the cell tower(s).  I have no rational thoughts as to what this being used for, or what good it may do.
    Traffic - this is apparently somehow used to update a database of traffic patterns.  How it knows what the traffic around me is, I do not know - ie. what triggers it, I have no idea.
    Anyway, I have them all disabled, as I can see no rational reason to have any of them on.  They just needlessly use up my battery, and are sending data to places that I have no idea of or about, for purposes I have no clue about, all of which, going by the complete lack of information about them, is by design (which just irritates me - at least explain the dang things or don't bother even including them).

  • ITunes 12 - Sort Show Option Missing

    Upgraded to iTunes 12 and when accessing a song under 'Sorting' the 'Sort Show' option is not listed.  But the 'Sort Show' option is available in the column browser.  I use 'Sort Show' to categorize songs into Smart Playlists.  How can I get this option 'back' for sorting songs in iTunes 12? 

    Had the same problem with the Mac but shift didn't work for me, it was "option/alt" while using File or right-click > Get Info. Thanks for the tip.
    I hope that menu doesn't go away. I have a few songbooks labeled "audiobook" that I don't want to label "music". It looks neater to keep it as a songbook; audiobook in this case. This way when I shuffle music, the songbook doesn't get in the way, and I can still shuffle the songbook in the audiobook section when I want to.

  • Link between documentation for chars value and chars

    Hi,
    we need to find out sap transaction or report for link between documentation of chars value and chars.
    we know for specific chars through CT04 and going to VALUES sub-tab then selecting perticular chars value and clicking on the documentation for value.

    Go to transaction CT10 and select display option 'Allowed values'. You will have the characteristics along with their values.

Maybe you are looking for

  • Is this a bug in MacOS 10.10 Yosemite?

    Mac Yosemite Photoshop 2014.2.1 I want to report a bug. I had just finished and closed a few file where I applied content aware scaling. Then if I opened another file in photoshop, it would open with sections of the previously closed files on the scr

  • Problem: package javax.servlet.jsp does not exist

    I am a novice JSP programmer. My projects that use any javax.servlet classes are not seeing those at all. I am working with a group of folks using Java SE 1.5. (Note: I'm using Windows so the directory separator is "\") What Used to work: 1. Nearly a

  • Imovie09  compatible formats

    I have video in .mpg format and want to use imovie09. What is the recommended conversion format to create best quality iMovie projects? Is it .mpg2? What is the recommended Mac Os10.6.3 compatible video converter? Can MPEG Streamclip be used to make

  • Transcoding footage off cards.

    I'm coming from a final cut pro 7 workflow environment.  In final cut I would normally go to file>log and transfer to transcode my footage off my card into video files.  Is there something similar where I can do this in premiere too?  I would rather

  • New to Application Express

    Hi All, I am new to to application express. I am a DBA and i need to develop few small application to store and report data to my management using Application express. Not sure from where to start. Need your guidance . Thanks, http://gssdba.wordpress