Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strange RecordComparator behavior

 
Greg Schwartz
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if anyone else has run into problems using the RecordComparator class to sort records by a value of type "long" that is representing a date.
The following scenario describes this problem: store 5/8/03 into an rms database
store 5/8/03 into an rms database
store 5/9/03 into an rms database
**retreiving these records works fine as they are retreived in the proper sorted order**
If I then store a record with 5/7/03 and retreive them all using a RecordComparator that compares these dates, the 5/7/03 transaction does not come before the 5/8/03 transactions.
If anyone has any ideas on what would be causing this behavior, please let me know. I'm not using multi-threading and have been rebuilding and destroying the enumerator as needed.
Thanks so much,
Greg
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic