Closed Bug 285351 Opened 20 years ago Closed 20 years ago

RDF Template is not sorting numeric data correctly.

Categories

(Core Graveyard :: RDF, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: chris, Unassigned)

Details

Attachments

(2 files)

693 bytes, text/xml
Details
490 bytes, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

I have a template that draws a tree from a remote RDF datasource.  When I click
the column to sort the data numeric data is getting sorted alphabetically.  I
tried using the rdf:datatype flag on the literal, but it did nothing.  Here is a
sample of the data I am using

<RDF:li>
        <RDF:Description>
                <row:ticketId>F3741</row:ticketId>
                <row:name>0526.sunpositions.txt</row:name>
                <row:description></row:description>
                <row:routeKey></row:routeKey>
                <row:filePath></row:filePath>
                <row:submitLogin></row:submitLogin>
                <row:submitDate>2004-11-01 16:42:34.676</row:submitDate>
                <row:submitIP></row:submitIP>
                <row:uploadTime></row:uploadTime>
                <row:size
rdf:datatype="http://www.w3.org/2001/XMLSchema#int">20</row:size>
                <row:inFileType></row:inFileType>
        </RDF:Description>
</RDF:li>



Reproducible: Always

Steps to Reproduce:
sort the data on a numeric column. 
Actual Results:  
data is sorted alphabetically

100
20
500



Expected Results:  
20 
100
500

I can attach my sample template and data file if it would help.  If this is not
a bug, I apologize.
I noticed on xulplanet, in their RDF guide that Mozilla does not follow the new datatype standards, but 
instead uses their own.. So in accordance with the information found in this link (http://xulplanet.com/
tutorials/mozsdk/rdfresources.php), I changed my rdf file to look like the following:

<?xml version="1.0" encoding="ISO-8859-1"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:NC="http://home.netscape.com/NC-rdf#"
        xmlns:row="http://dummy/rdf#">

<RDF:Bag about="urn:data:row">
<RDF:li>
        <RDF:Description>
                <row:ticketId>F3740</row:ticketId>
                <row:name>038C74757.MS8005.549254.20040527.144035.5988.txt</row:name>
                <row:description></row:description>
                <row:routeKey></row:routeKey>
                <row:filePath></row:filePath>
                <row:submitLogin></row:submitLogin>
                <row:submitDate>2004-11-01 16:39:35.9</row:submitDate>
                <row:submitIP></row:submitIP>
                <row:uploadTime></row:uploadTime>
                <row:size NC:parseType="Integer">10</row:size>
                <row:inFileType></row:inFileType>
        </RDF:Description>
</RDF:li>

I still get the incorrect sort behavoir
Summary: RDF Template is not sorting numeric data correctly. → RDF Template is not sorting numeric data correctly.
Attached file RDF for testcase
Attached file xul testcase
the given testcase works for me.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Could you possible post your test case xul and rdf file.  I have tried this numerous ways, and was 
unable to get this to work.

Thanks
hrm. what do you think attachement 178108 is doing?
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: