Changeset 20905a0 in sasview for sansview


Ignore:
Timestamp:
Sep 23, 2010 3:07:09 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
7381f34
Parents:
db08737
Message:

fixed small problem of custom order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage.py

    rdb08737 r20905a0  
    20932093                else: return -1 
    20942094            # one of them has a number 
    2095             elif num_a == None: return -1 
    2096             elif num_b == None: return 1 
     2095            elif num_a != None: return 1 
     2096            elif num_b != None: return -1 
    20972097            # no nuumbers 
    2098             else: 
    2099                 return cmp(a.lower(), b.lower()) 
    2100              
     2098            else: return cmp(a.lower(), b.lower()) 
     2099                         
    21012100        keys.sort(custom_compare) 
    21022101     
Note: See TracChangeset for help on using the changeset viewer.