Hello Christian,
   It seems that db:list-details() shows the same "modified-date" attribute for all resources in a database which is same as the last-modified time of any of the paths.
 
Example :
db:list-details('project1')
<resource raw="false" content-type="application/xml" modified-date="2012-06-03T12:14:06.154Z">RESULT/SOURCEID3/5/filename3</resource>
<resource raw="false" content-type="application/xml" modified-date="2012-06-03T12:14:06.154Z">RESULT/SOURCEID1/1/filename1</resource>

REPLACE  RESULT/SOURCEID1/1/filename1  C:\sample1.xml 

db:list-details('project1')
<resource raw="false" content-type="application/xml" modified-date="2012-06-03T12:34:10.051Z">RESULT/SOURCEID3/5/filename3</resource>
<resource raw="false" content-type="application/xml" modified-date="2012-06-03T12:34:10.051Z">RESULT/SOURCEID1/1/filename1</resource>

Note that even though RESULT/SOURCEID3/5/filename3 was not replaced, its modified date is same as the file that was replaced.

 I assume that's a bug. I checked in the issue database, but didn't find any similar bug.

Thanks,
Anupam


From: Christian Grün <christian.gruen@gmail.com>
To: Anupam Bakshi <bakshia@yahoo.com>
Cc: BaseX <basex-talk@mailman.uni-konstanz.de>
Sent: Saturday, June 2, 2012 5:01 PM
Subject: Re: [basex-talk] Apparant discrepancy in collection and db:list

Hi Anupam,

>   I noticed that collection() returns the nodes in the order in which they
> were added (which is good). However, db:list() returns them in alphabetical
> order. Any reason why that is the case?

please note that there's no guarantee that collection() or db:open()
will return all documents in the order they have originally been added
to the database. Next, future version of BaseX will most probably
outlaw the storage of documents with identical names [1], which is why
I'd second Jens' proposal to assign different names to your documents.

Christian

[1] https://github.com/BaseXdb/basex/issues/429

>   Can I somehow get the list of resources in the order in which they were
> added?
>
>  Thanks,
> Anupam
>
> P.S.
> Jens, thanks for your suggestion, I'll try that if all else fails.
> Christian, I'll try the server feature in the latest source and send
> feedback a little later. Thanks for your help and suggestions.
>
> _______________________________________________
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
>