Menu

#206 Sorting by name doesn't work in library (Java 1.6)

SVN
closed-fixed
GUI (61)
5
2007-07-04
2007-05-29
No

Hi,

When searching by name in the library in Java 1.6 the sorting just gets seemingly random.

It does work in the search-tab, the download-tab and the upload tab.

Wishes,
Arne

Discussion

  • Gregor K.

    Gregor K. - 2007-06-13

    Logged In: YES
    user_id=63086
    Originator: NO

    fix in svn

     
  • Gregor K.

    Gregor K. - 2007-06-13
    • assigned_to: nobody --> gregork
    • status: open --> pending-fixed
     
  • Arne Babenhauserheide

    Logged In: YES
    user_id=608680
    Originator: YES

    It still doesn't work for me...

    Is the fix in trunk?

    My environment:

    file.encoding = UTF-8
    file.encoding.pkg = sun.io
    file.separator = /
    java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
    java.awt.printerjob = sun.print.PSPrinterJob
    java.class.path = phex.jar
    java.class.version = 50.0
    java.endorsed.dirs = /opt/sun-jdk-1.6.0/jre/lib/endorsed
    java.ext.dirs = /opt/sun-jdk-1.6.0/jre/lib/ext:/usr/java/packages/lib/ext
    java.home = /opt/sun-jdk-1.6.0/jre
    java.io.tmpdir = /tmp
    java.library.path = /opt/sun-jdk-1.6.0/jre/lib/amd64/server:/opt/sun-jdk-1.6.0/jre/lib/amd64:/opt/sun-jdk-1.6.0/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0-b105
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.6
    java.vendor = Sun Microsystems Inc.
    java.vendor.url = http://java.sun.com/
    java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.6.0
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 1.6.0-b105
    line.separator =

    org.apache.commons.logging.Log = phex.utils.PhexLogger
    os.arch = amd64
    os.name = Linux
    os.version = 2.6.18-gentoo-r6
    path.separator = :
    phex.utils.logger.console = false
    phex.utils.logger.errorLogFile = phex.error.log
    phex.utils.logger.level = 3
    phex.utils.logger.logFile = phex.log
    phex.utils.logger.maxFileSize = 524288
    sun.arch.data.model = 64
    sun.boot.class.path = /opt/sun-jdk-1.6.0/jre/lib/resources.jar:/opt/sun-jdk-1.6.0/jre/lib/rt.jar:/opt/sun-jdk-1.6.0/jre/lib/sunrsasign.jar:/opt/sun-jdk-1.6.0/jre/lib/jsse.jar:/opt/sun-jdk-1.6.0/jre/lib/jce.jar:/opt/sun-jdk-1.6.0/jre/lib/charsets.jar:/opt/sun-jdk-1.6.0/jre/classes
    sun.boot.library.path = /opt/sun-jdk-1.6.0/jre/lib/amd64
    sun.cpu.endian = little
    sun.cpu.isalist =
    sun.io.unicode.encoding = UnicodeLittle
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = UTF-8
    sun.management.compiler = HotSpot 64-Bit Server Compiler
    sun.os.patch.level = unknown
    user.country = DE
    user.dir = /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/output/lib
    user.home = /home/arne
    user.language = de
    user.name = arne
    user.timezone = GMT

     
  • Arne Babenhauserheide

    • status: pending-fixed --> open-fixed
     
  • Gregor K.

    Gregor K. - 2007-06-30
    • status: open-fixed --> pending-fixed
     
  • Gregor K.

    Gregor K. - 2007-06-30

    Logged In: YES
    user_id=63086
    Originator: NO

    still works perfectly here...

     
  • Arne Babenhauserheide

    • status: pending-fixed --> closed-fixed
     
  • Arne Babenhauserheide

    Logged In: YES
    user_id=608680
    Originator: YES

    Only one thing remaining:

    "(... " gets sorted above regular names, while
    "[..." gets sorted below.

     
  • Gregor K.

    Gregor K. - 2007-07-04

    Logged In: YES
    user_id=63086
    Originator: NO

    String sorting is done according to the ASCII table decimal values of characters.
    ( is 0x28
    0 is 0x30
    A is 0x41
    Z is 0x5A
    [ is 0x5B
    So this is perfectly fine in my eyes...