Changeset 20905a0 in sasview for theoryview/perspectives/theory


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
  • theoryview/perspectives/theory/model_panel.py

    rdb08737 r20905a0  
    551551                else: return -1 
    552552            # one of them has a number 
    553             elif num_a == None: return -1 
    554             elif num_b == None: return 1 
     553            elif num_a != None: return 1 
     554            elif num_b != None: return -1 
    555555            # no nuumbers 
    556             else: 
    557                 return cmp(a.lower(), b.lower()) 
     556            else: return cmp(a.lower(), b.lower()) 
    558557             
    559558        keys.sort(custom_compare) 
Note: See TracChangeset for help on using the changeset viewer.