I was chatting with Dave Wilcox as I was working on my lab tonight and he is a life saver. (A wild cherry one, I would guess.) Anyway, as I was working on my query for comments he gave me the greatest tip ever!
If you want to sort by something in your SimpleDB query, it has to be referenced in the query.
For example, if I wanted to sort by coolness in my made up SimpleDB domain, you might think the query "['submitdate' > 'some param
Picture from : http://ecx.images-amazon.com/images/I/519DTFXWQ6L._SL500_AA280_PIbundle-12,TopRight,0,0_AA280_SH20_.jpg
I don't know of the least-common-denominator database systems require it, but generally in a traditional SQL database (which SimpleDB tries to be, kinda, and isn't) you need to reference your sort fields as well. It's not just SimpleDB.
ReplyDeleteThanks Jeremy, I was having trouble with that as well. ;)
ReplyDelete