Hello,

I'd like to be able to sort a view by a field's delta value. So I wondered if there allready exists any module like that. But could not find one. Did I overlook one?

As there was no such module, I'd like to write some. Because I'm not big into Views2 plugins at the moment, I'd appreciate any help you could give me.
I could image to extend the sort function to any column any cck field provides, but as said, would need help with views2 plugin integration.

Best regards!
derhasi

CommentFileSizeAuthor
#2 493364-content.views_.inc_.patch778 bytesaaronbauman

Comments

andrewsuth’s picture

Edit: Wrong thread

aaronbauman’s picture

StatusFileSize
new778 bytes

This patch adds a Delta sort for every cck field, regardless of the fields' sort-ability.

This is sufficient and necessary for my use case:
I need nodereference fields to be sorted by delta,
even though nodereference fields don't provide any sort handler.

(IMO delta should be the default sort for all cck fields, instead of arbitrary, but that's another issue isn't it?)

I threw this together really quickly, and it suits my needs perfectly, so I probably won't touch it again if it gets marked "needs work"... feel free to use and abuse.

markus_petrux’s picture