Hi, the module's function of sorting data seems to be limited to pure numerical and alphabetic order. Is there anyway that I could input date (i.e. MM/DD/YYYY) and sort according to the date column? Thanks again for your wonderful module!
Hi, the module's function of sorting data seems to be limited to pure numerical and alphabetic order. Is there anyway that I could input date (i.e. MM/DD/YYYY) and sort according to the date column? Thanks again for your wonderful module!
Comments
Comment #1
pobster commentedWell... :o) If you input it in the format:
YY/MM/DD
Ensuring that you call 'single' digit months 0-something (ie. 01, 02, 03) then sorting althabetical will work just fine for you - but yep :o) I like your thought on allowing a column to be a date (and thus have a date selector rather than just an input field), I like it a lot!... But... And there's always a 'but' :o( Someone else will be releasing a 'Tablemanager v2' which will be a lot more involved and allow data types and although I *could* perhaps add this facility to my version, my programming knowledge is verrrrrry limited and I can offer no sort of timescale to getting this implemented. I'm currently struggling to make tablemanager Drupal 4.7 compatible and I'm failing miserably. It all works just fine, but I keep getting pager errors and I just don't know why :o( And obviously fixing this will be my main priority at the moment.
...Watch this space though ;o) Because as I said, I *do* like this idea! :o)
Pobster
Comment #2
kzeng commentedHi, Pobster
Thanks a ton for your detailed reply. But I seem to encounter another problem after you fixed the lasted bug (i.e. the default sorting bug). Now no column can be sorted at all. Could you please check it? Thanks a lot for your hepl!
cheers,
kzeng
Comment #3
pobster commentedWell... I'm using the current version and it appears to be fine? :o( One Drupal type bug is that if you select the first column to be sortable then it doesn't automatically make it a darker colour than the others (anything other than the first column is fine though).
Other than that... I don't know what to suggest :o(
Pobster
Comment #4
pobster commentedHeh :o) Obviously being darker colour doesn't affect whether it can be sorted or not ;o) But my columns are sorting just fine?
Pobster
Comment #5
pobster commentedAha! :o) Okay I've figured out why mine is fine - it's because I page my results and when the results are erm... un-paged (is that a word?) then no sorting takes place...
...I'm on it... Thanks for pointing this out - I'd have never noticed it myself as I always paginate everything!
Pobster
Comment #6
alexn commentedIndeed, thanks for the leade. If you don't specify a max rows, sorting doesn't work. If you specify one (e.g. 1,1000) it works, no matter how many rows.
Comment #7
pobster commentedI've currently released a 4.7 version and one of my goals with this is to implement date sorting... I've started working on it today, watch this space!
Pobster
Comment #8
pobster commentedClosing as D4.6.x is now VERY unsupported.