My favorites | Sign in
Project Home Downloads Issues Source
Details: Show all Hide all

Last 7 days

  • Feb 20, 2012
    issue 23 (Orderby x - then by y) Labels changed by sje...@gmail.com   -   Well that's because it will 'see' it as a numeral value. You could change it to this: http://jsfiddle.net/Sjeiti/rLaHT/31/ This could even work for multiple values if the values stay within a range: in this example the id cannot go higher than 999 since that would cause it to be '1' in the temporary data-foo. For a higher range you'd have to divide the 'id' by a higher number. So more values can be added by dividing or multiplying by something twice as high, ie: 33*1E4 + 33 + 33/1E3 + 33/1E6 = 330033.033033 (where each of the 33's would be a different value). Needless to say this would only work with numerals.
    Labels: Type-Enhancement Type-Defect
    Well that's because it will 'see' it as a numeral value. You could change it to this: http://jsfiddle.net/Sjeiti/rLaHT/31/ This could even work for multiple values if the values stay within a range: in this example the id cannot go higher than 999 since that would cause it to be '1' in the temporary data-foo. For a higher range you'd have to divide the 'id' by a higher number. So more values can be added by dividing or multiplying by something twice as high, ie: 33*1E4 + 33 + 33/1E3 + 33/1E6 = 330033.033033 (where each of the 33's would be a different value). Needless to say this would only work with numerals.
    Labels: Type-Enhancement Type-Defect
  • Feb 20, 2012
    issue 23 (Orderby x - then by y) commented on by lars...@gmail.com   -   Problem is that lenght of 'id' should be the same on all elements. Same for 'data-sp'. http://jsfiddle.net/lmojo/rLaHT/20/ If I change the lenght on 'id' it don't work: http://jsfiddle.net/lmojo/rLaHT/21/ I need the 'id' for identifying unique elements for later dom update...
    Problem is that lenght of 'id' should be the same on all elements. Same for 'data-sp'. http://jsfiddle.net/lmojo/rLaHT/20/ If I change the lenght on 'id' it don't work: http://jsfiddle.net/lmojo/rLaHT/21/ I need the 'id' for identifying unique elements for later dom update...
  • Feb 20, 2012
    issue 23 (Orderby x - then by y) commented on by sje...@gmail.com   -   No that doesn't, here's temporary workaround that does work: http://jsfiddle.net/Sjeiti/rLaHT/17/
    No that doesn't, here's temporary workaround that does work: http://jsfiddle.net/Sjeiti/rLaHT/17/
  • Feb 20, 2012
    issue 23 (Orderby x - then by y) commented on by lars...@gmail.com   -   Dont't work sorting twice :-( http://jsfiddle.net/lmojo/rLaHT/12 (see data-sp="4") Really looking forward to this one
    Dont't work sorting twice :-( http://jsfiddle.net/lmojo/rLaHT/12 (see data-sp="4") Really looking forward to this one
  • Feb 20, 2012
    issue 22 (sort problem with greek characters) commented on by lars...@gmail.com   -   Really like the .charOrder solution Nice For Danish the only thing missing is the double charachter Aa = Å It's primary used for city names http://jsfiddle.net/lmojo/wJq86/ Anders, København, Æble, Øresund, Åben, Aarhus, Åse or The correct sort order for the following cities are: Aabybro,Åbyhøj,Aakirkeby,Aalborg,Aalborg,Aalborg,Aalborg SV,Aalborg SØ,Aalborg Øst Ålbæk,Aalestrup,Ålsgårde,Aarhus C,Aarhus C,Aarhus N,Aarhus V,Årre,Aars,Årslev,Aarup (MS SQL Collation: SQL_Danish_Pref_CP1_CI_AS + Danish MS Excel) will sort like that. This is a minor thing - I could live with Aa comming before abc...
    Really like the .charOrder solution Nice For Danish the only thing missing is the double charachter Aa = Å It's primary used for city names http://jsfiddle.net/lmojo/wJq86/ Anders, København, Æble, Øresund, Åben, Aarhus, Åse or The correct sort order for the following cities are: Aabybro,Åbyhøj,Aakirkeby,Aalborg,Aalborg,Aalborg,Aalborg SV,Aalborg SØ,Aalborg Øst Ålbæk,Aalestrup,Ålsgårde,Aarhus C,Aarhus C,Aarhus N,Aarhus V,Årre,Aars,Årslev,Aarup (MS SQL Collation: SQL_Danish_Pref_CP1_CI_AS + Danish MS Excel) will sort like that. This is a minor thing - I could live with Aa comming before abc...
  • Feb 17, 2012
    issue 22 (sort problem with greek characters) commented on by papadopo...@gmail.com   -   hi there! it`s a lot better than before but not quite perfect yet for greek. see here http://jsfiddle.net/Jyx59/80/ -it may be my mistake. sorry for that!- I only gave you the lowercase order for the greek characters the last time. This is the correct order for lower and upper case letters: α,ά,β,γ,δ,ε,έ,ζ,η,ή,θ,ι,ί,ϊ,ΐ,κ,λ,μ,ν,ξ,ο,ό,π,ρ,σ,τ,υ,ύ,ϋ,ΰ,φ,χ,ψ,ω,ώ A,Ά,Β,Γ,Δ,Ε,Έ,Ζ,Η,Ή,Θ,Ι,Ί,Ϊ,Κ,Λ,Μ,Ν,Ξ,Ο,Ό,Π,Ρ,Σ,Τ,Υ,Ύ,Ϋ,Φ,Χ,Ψ,Ω,Ώ where each line should be considered the same while sorting: http://en.wikipedia.org/wiki/Greek_diacritics#Unicode α,ά,A,Ά β,Β γ,Γ δ,Δ ε,έ,Ε,Έ ζ,Ζ η,ή,Η,Ή θ,Θ ι,ί,ϊ,ΐ,Ι,Ί,Ϊ κ,Κ λ,Λ μ,Μ ν,Ν ξ,Ξ ο,ό,Ο,Ό π,Π ρ,Π σ,Σ τ,Τ υ,ύ,ϋ,ΰ,Υ,Ύ,Ϋ φ,Φ χ,Χ ψ,Ψ ω,ώ,Ω,Ώ
    hi there! it`s a lot better than before but not quite perfect yet for greek. see here http://jsfiddle.net/Jyx59/80/ -it may be my mistake. sorry for that!- I only gave you the lowercase order for the greek characters the last time. This is the correct order for lower and upper case letters: α,ά,β,γ,δ,ε,έ,ζ,η,ή,θ,ι,ί,ϊ,ΐ,κ,λ,μ,ν,ξ,ο,ό,π,ρ,σ,τ,υ,ύ,ϋ,ΰ,φ,χ,ψ,ω,ώ A,Ά,Β,Γ,Δ,Ε,Έ,Ζ,Η,Ή,Θ,Ι,Ί,Ϊ,Κ,Λ,Μ,Ν,Ξ,Ο,Ό,Π,Ρ,Σ,Τ,Υ,Ύ,Ϋ,Φ,Χ,Ψ,Ω,Ώ where each line should be considered the same while sorting: http://en.wikipedia.org/wiki/Greek_diacritics#Unicode α,ά,A,Ά β,Β γ,Γ δ,Δ ε,έ,Ε,Έ ζ,Ζ η,ή,Η,Ή θ,Θ ι,ί,ϊ,ΐ,Ι,Ί,Ϊ κ,Κ λ,Λ μ,Μ ν,Ν ξ,Ξ ο,ό,Ο,Ό π,Π ρ,Π σ,Σ τ,Τ υ,ύ,ϋ,ΰ,Υ,Ύ,Ϋ φ,Φ χ,Χ ψ,Ψ ω,ώ,Ω,Ώ
  • Feb 17, 2012
    issue 22 (sort problem with greek characters) commented on by sje...@gmail.com   -   I think I have fixed it: http://jsfiddle.net/Sjeiti/Jyx59/ Please verify and I will commit the source. If you check the source on Jsfiddle you'll see I set the order like this: $.tinysort.defaults.charOrder = 'zæøå'; But you could of course also do: $.tsort({charOrder:'zæøå'}); It works as follows: The charOrder string is checked for non-latin chars. Each time it encounters non-latin chars in a row it will append it to the previous latin char (or 'z' if charOrder contains only non-latin chars). So charOrder or 'abczæøå' or 'zæøå' or 'æøå' will all result in 'abcdefghijklmnopqrstuvwxyzæøå'. A charOrder of 'aåbøczæ' will result in 'aåbøcdefghijklmnopqrstuvwxyzæ'. etcetera... The only thing I have not yet fixed are sorting foreign characters that consist of more characters, ie: 'lj' in Servo-Croatian, 'ch' in Spanish or 'ss' in German.
    I think I have fixed it: http://jsfiddle.net/Sjeiti/Jyx59/ Please verify and I will commit the source. If you check the source on Jsfiddle you'll see I set the order like this: $.tinysort.defaults.charOrder = 'zæøå'; But you could of course also do: $.tsort({charOrder:'zæøå'}); It works as follows: The charOrder string is checked for non-latin chars. Each time it encounters non-latin chars in a row it will append it to the previous latin char (or 'z' if charOrder contains only non-latin chars). So charOrder or 'abczæøå' or 'zæøå' or 'æøå' will all result in 'abcdefghijklmnopqrstuvwxyzæøå'. A charOrder of 'aåbøczæ' will result in 'aåbøcdefghijklmnopqrstuvwxyzæ'. etcetera... The only thing I have not yet fixed are sorting foreign characters that consist of more characters, ie: 'lj' in Servo-Croatian, 'ch' in Spanish or 'ss' in German.

Last 30 days

  • Feb 15, 2012
    issue 23 (Orderby x - then by y) Status changed by sje...@gmail.com   -   No it doesn't support the x,y sort but that stackoverflow link doesn't seem that hard to implement... I will give it a shot when I have time...
    Status: Accepted
    No it doesn't support the x,y sort but that stackoverflow link doesn't seem that hard to implement... I will give it a shot when I have time...
    Status: Accepted
  • Feb 15, 2012
    issue 22 (sort problem with greek characters) Status changed by sje...@gmail.com   -   ok... getting there... http://jsfiddle.net/Sjeiti/Pnm8T/ It will become slightly slower because of an extra for-loop. As you can see, Greek now uses the data-order attribute with the list Takis provided. This orders somewhat correctly but does not yet account form -normal- characters and numbers. I think I'll finally implement this as an extra default value you can set: as in $.tinysort.defaults.lang or whatever.... Have to get back to real work now... :-)
    Status: Started
    ok... getting there... http://jsfiddle.net/Sjeiti/Pnm8T/ It will become slightly slower because of an extra for-loop. As you can see, Greek now uses the data-order attribute with the list Takis provided. This orders somewhat correctly but does not yet account form -normal- characters and numbers. I think I'll finally implement this as an extra default value you can set: as in $.tinysort.defaults.lang or whatever.... Have to get back to real work now... :-)
    Status: Started
  • Feb 15, 2012
    issue 23 (Orderby x - then by y) reported by lars...@gmail.com   -   Hi, Does Tinysort support orderby x, y ? I can do this by tsort twice: http://jsfiddle.net/lmojo/rLaHT/ But performance goes down... Found this: http://stackoverflow.com/questions/3116172/jquery-sorting-of-div-elements-based-on-count-and-date-time-timestamp
    Hi, Does Tinysort support orderby x, y ? I can do this by tsort twice: http://jsfiddle.net/lmojo/rLaHT/ But performance goes down... Found this: http://stackoverflow.com/questions/3116172/jquery-sorting-of-div-elements-based-on-count-and-date-time-timestamp
  • Feb 15, 2012
    issue 22 (sort problem with greek characters) commented on by lars...@gmail.com   -   Hi, I have same problem with Danish chars: http://jsfiddle.net/lmojo/wJq86/
    Hi, I have same problem with Danish chars: http://jsfiddle.net/lmojo/wJq86/
  • Feb 08, 2012
    issue 22 (sort problem with greek characters) commented on by papadopo...@gmail.com   -   Unfortunately my friend this doesn`t work properly, neither did the previous one with the array. If we could make a letter order map like (α,ά,β,γ,δ,ε,έ,ζ,η,ή,θ,ι,ί,ϊ,ΐ,κ,λ,μ,ν,ξ,ο,ό,π,ρ,σ,τ,υ,ύ,φ,χ,ψ,ω,ώ) i think it would work. You see for example "δανείζω" should be before "δέχομαι" because it`s like "danizw, dechomai", a before e. BUT if it was δαν... and δεχ (ε=έ |'helps in reading) it works fine. try http://jsfiddle.net/LTDWA/4/
    Unfortunately my friend this doesn`t work properly, neither did the previous one with the array. If we could make a letter order map like (α,ά,β,γ,δ,ε,έ,ζ,η,ή,θ,ι,ί,ϊ,ΐ,κ,λ,μ,ν,ξ,ο,ό,π,ρ,σ,τ,υ,ύ,φ,χ,ψ,ω,ώ) i think it would work. You see for example "δανείζω" should be before "δέχομαι" because it`s like "danizw, dechomai", a before e. BUT if it was δαν... and δεχ (ε=έ |'helps in reading) it works fine. try http://jsfiddle.net/LTDWA/4/
  • Feb 08, 2012
    issue 22 (sort problem with greek characters) commented on by sje...@gmail.com   -   How's this? http://jsfiddle.net/Sjeiti/LTDWA/3/ If this custom sort function is correct I will go and build it into TinySort.
    How's this? http://jsfiddle.net/Sjeiti/LTDWA/3/ If this custom sort function is correct I will go and build it into TinySort.
  • Feb 08, 2012
    issue 22 (sort problem with greek characters) changed by sje...@gmail.com   -   Hi... Yeah this is not really a TinySort bug. This is just how Javascript sorts Greek strings. See adjusted JSFiddle here: http://jsfiddle.net/Sjeiti/LTDWA/ A possible workaround could be parsing a custom sort function... But I'll go see if I can come up with a solution since this problem occurs for other languages as well.
    Status: NeedInfo
    Labels: Priority-Low Priority-Medium
    Hi... Yeah this is not really a TinySort bug. This is just how Javascript sorts Greek strings. See adjusted JSFiddle here: http://jsfiddle.net/Sjeiti/LTDWA/ A possible workaround could be parsing a custom sort function... But I'll go see if I can come up with a solution since this problem occurs for other languages as well.
    Status: NeedInfo
    Labels: Priority-Low Priority-Medium
  • Feb 08, 2012
    issue 22 (sort problem with greek characters) reported by papadopo...@gmail.com   -   hi there! nice work with your plugin but doesn`t work well with greek characters. it doesn`t sort all of the words correctly you can see an example here http://jsfiddle.net/zGpWQ/6/ no matter what browser or jquery version, it makes the same mistakes. any ideas?
    hi there! nice work with your plugin but doesn`t work well with greek characters. it doesn`t sort all of the words correctly you can see an example here http://jsfiddle.net/zGpWQ/6/ no matter what browser or jquery version, it makes the same mistakes. any ideas?
  • Feb 06, 2012
    jquery.tinysort.1.2.18.zip (jquery.tinysort.1.2.18.zip) file uploaded by sje...@gmail.com   -  
    Labels: Featured
    Labels: Featured
  • Feb 06, 2012
    issue 21 (IE - console is undefined errors) commented on by sje...@gmail.com   -   If I remember correctly the first version was around 1.3.6 but it has so little dependencies it'll probably work in earlier versions (it only uses extend, filter, each and pushStack).
    If I remember correctly the first version was around 1.3.6 but it has so little dependencies it'll probably work in earlier versions (it only uses extend, filter, each and pushStack).
  • Feb 06, 2012
    issue 21 (IE - console is undefined errors) commented on by jasonday...@gmail.com   -   on an aside - what is the minimum jQuery version? (I'm running 1.4.2 and it is working - but I'm not using all of the features - just a simple sort)
    on an aside - what is the minimum jQuery version? (I'm running 1.4.2 and it is working - but I'm not using all of the features - just a simple sort)
  • Feb 06, 2012
    r18 (a forgotten console.log) committed by sje...@gmail.com   -   a forgotten console.log
    a forgotten console.log
  • Feb 06, 2012
    issue 21 (IE - console is undefined errors) Status changed by sje...@gmail.com   -  
    Status: Fixed
    Status: Fixed
  • Feb 06, 2012
    r17 (revision number now corresponds with svn revision) committed by sje...@gmail.com   -   revision number now corresponds with svn revision
    revision number now corresponds with svn revision
  • Feb 06, 2012
    issue 21 (IE - console is undefined errors) commented on by jasonday...@gmail.com   -   thanks!
    thanks!
  • Feb 06, 2012
    issue 21 (IE - console is undefined errors) changed by sje...@gmail.com   -   I thought I removed all those... I'll go check again
    Status: Started
    Owner:
    I thought I removed all those... I'll go check again
    Status: Started
    Owner:
  • Feb 06, 2012
    issue 21 (IE - console is undefined errors) reported by jasonday...@gmail.com   -   Any workaround for "console is undefined" error in IE?
    Any workaround for "console is undefined" error in IE?
  • Feb 05, 2012
    r16 ([No log message]) committed by sje...@gmail.com   -   [No log message]
    [No log message]
  • Feb 04, 2012
    issue 19 (Sort by multiple properties) Status changed by sje...@gmail.com   -   however mixed literal/numeral values are now working correctly for v1.2 (already in svn)
    Status: WontFix
    however mixed literal/numeral values are now working correctly for v1.2 (already in svn)
    Status: WontFix
  • Feb 04, 2012
    r15 (removed isNum fixed mixed literal/numeral values added data ...) committed by sje...@gmail.com   -   removed isNum fixed mixed literal/numeral values added data example
    removed isNum fixed mixed literal/numeral values added data example
  • Feb 04, 2012
    issue 19 (Sort by multiple properties) commented on by sje...@gmail.com   -   ps... indeed the original issue Marc coined is indeed one of multiple attributes... but it's not something I'll fix the way he wants it. Since you can indeed easily do something like adding an extra data attribute.
    ps... indeed the original issue Marc coined is indeed one of multiple attributes... but it's not something I'll fix the way he wants it. Since you can indeed easily do something like adding an extra data attribute.
  • Feb 04, 2012
    issue 19 (Sort by multiple properties) commented on by sje...@gmail.com   -   No the problem is mixed numeral/literal. Normally calling a sort on ['foobar11','foobar1','foobar7'] will result in ['foobar1','foobar11','foobar7'] because it handles the numbers as text (literal). But (sometimes) we really want the result to be ['foobar1','foobar7','foobar11']. ...but maybe I've been going at it from the wrong angle (been deprived of sleep a bit lately) I think I can sort this one out.
    No the problem is mixed numeral/literal. Normally calling a sort on ['foobar11','foobar1','foobar7'] will result in ['foobar1','foobar11','foobar7'] because it handles the numbers as text (literal). But (sometimes) we really want the result to be ['foobar1','foobar7','foobar11']. ...but maybe I've been going at it from the wrong angle (been deprived of sleep a bit lately) I think I can sort this one out.
  • Feb 04, 2012
    issue 19 (Sort by multiple properties) commented on by ashle...@gmail.com   -   Maybe I'm not following your thoughts correctly, but I'm going to assume that the use-case would have two different attributes/values/place for each sorting method: <div data-rank="0" data-person="Greg"></div> <div data-rank="0" data-person="Alan"></div> <div data-rank="0" data-person="Stanley"></div> Wouldn't it be a not-so-simple sort on data-rank (which shouldn't re-order them at all), and then place them in this order: Alan, Greg, Stanley? I don't think it's plausible (or even useful) to have tinysort sort by multiple methods on the same value. Or, am I not following,
    Maybe I'm not following your thoughts correctly, but I'm going to assume that the use-case would have two different attributes/values/place for each sorting method: <div data-rank="0" data-person="Greg"></div> <div data-rank="0" data-person="Alan"></div> <div data-rank="0" data-person="Stanley"></div> Wouldn't it be a not-so-simple sort on data-rank (which shouldn't re-order them at all), and then place them in this order: Alan, Greg, Stanley? I don't think it's plausible (or even useful) to have tinysort sort by multiple methods on the same value. Or, am I not following,
  • Feb 04, 2012
    issue 20 (Not working in IE 9) Status changed by sje...@gmail.com   -   damn IE and console.log
    Status: Fixed
    damn IE and console.log
    Status: Fixed
  • Feb 04, 2012
    r14 (better isNum function wrote tests for exposed private functi...) committed by sje...@gmail.com   -   better isNum function wrote tests for exposed private functions better tests for 13 and 15 (IE failed) removed IE console.log
    better isNum function wrote tests for exposed private functions better tests for 13 and 15 (IE failed) removed IE console.log
  • Feb 03, 2012
    issue 20 (Not working in IE 9) reported by lucare...@gmail.com   -   Your plugin is working great for me on Chrome and Safari. However, it is not working at all in IE 9 (version 9.0.8112.16421) on Windows 7. Nothing sorts and even the examples on your website don't even show up. http://tinysort.sjeiti.com/test.html Says: "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2; .NET4.0E) Tests completed in 21 milliseconds. 0 tests of 0 passed, 0 failed." Thanks, Bill
    Your plugin is working great for me on Chrome and Safari. However, it is not working at all in IE 9 (version 9.0.8112.16421) on Windows 7. Nothing sorts and even the examples on your website don't even show up. http://tinysort.sjeiti.com/test.html Says: "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2; .NET4.0E) Tests completed in 21 milliseconds. 0 tests of 0 passed, 0 failed." Thanks, Bill
  • Jan 30, 2012
    issue 19 (Sort by multiple properties) changed by sje...@gmail.com   -   I don't suppose you have an idea on how to solve this? I've known this mixed literal/numeral issue since day one and have never come up with an elegant solution, and I'm not going to implement a slow and bloated solution. The difficulty here is that a normal sort does not know the other values in advance. Your items all have nice looking values but consider something like: [a1,a,a0,aa2,b,b12,b1a2,a01c,b3a2v2]. You'd have run through the list once before sorting, then decide that the minimal sort matching /d is 4 loops since it's the lowest common denominator for the values 'b1a2' and 'b3a2v2'. But that's just off the top of my head. I'm sure other people have come up with a better approach. ...any thoughts?
    Status: NeedInfo
    Labels: Type-Enhancement Priority-Low Type-Defect Priority-Medium
    I don't suppose you have an idea on how to solve this? I've known this mixed literal/numeral issue since day one and have never come up with an elegant solution, and I'm not going to implement a slow and bloated solution. The difficulty here is that a normal sort does not know the other values in advance. Your items all have nice looking values but consider something like: [a1,a,a0,aa2,b,b12,b1a2,a01c,b3a2v2]. You'd have run through the list once before sorting, then decide that the minimal sort matching /d is 4 loops since it's the lowest common denominator for the values 'b1a2' and 'b3a2v2'. But that's just off the top of my head. I'm sure other people have come up with a better approach. ...any thoughts?
    Status: NeedInfo
    Labels: Type-Enhancement Priority-Low Type-Defect Priority-Medium
  • Jan 30, 2012
    r13 (better isNum function wrote tests for exposed private functi...) committed by sje...@gmail.com   -   better isNum function wrote tests for exposed private functions better tests for 13 and 15 (IE failed)
    better isNum function wrote tests for exposed private functions better tests for 13 and 15 (IE failed)

Earlier this year

  • Jan 17, 2012
    issue 19 (Sort by multiple properties) reported by marc.sel...@gmail.com   -   Allow sorting by multiple properties. For example: first sort items by a number property of the item and then by a name property. Item1 : abc, 15 Item2 : bcd, 18 Item3 : cde, 14 Item4 : bcd, 14 Sort by name: Item1 > Item2 > Item4 > Item3 Sort by number: Item3 > Item4 > Item1 > Item2 Sort by name THEN number: Item1 > Item4 > Item2 > Item3 Sort by number THEN name: Item4 > Item3 > Item1 > Item2
    Allow sorting by multiple properties. For example: first sort items by a number property of the item and then by a name property. Item1 : abc, 15 Item2 : bcd, 18 Item3 : cde, 14 Item4 : bcd, 14 Sort by name: Item1 > Item2 > Item4 > Item3 Sort by number: Item3 > Item4 > Item1 > Item2 Sort by name THEN number: Item1 > Item4 > Item2 > Item3 Sort by number THEN name: Item4 > Item3 > Item1 > Item2

Older

  • Nov 10, 2011
    r12 (added example for animated sort) committed by sje...@gmail.com   -   added example for animated sort
    added example for animated sort
  • Oct 17, 2011
    r11 (better isNum function wrote tests for exposed private functi...) committed by sje...@gmail.com   -   better isNum function wrote tests for exposed private functions better tests for 13 and 15 (IE failed)
    better isNum function wrote tests for exposed private functions better tests for 13 and 15 (IE failed)
  • Oct 12, 2011
    issue 17 (Can't sort dynamically added DOM elements) commented on by derek.di...@gmail.com   -   Thanks. That makes sense. Sorry for opening an 'issue' for something that isn't. You might add that to the documentation since newcomers to jQuery (such as myself) may not know that jQuery objects don't notice changes. It seemed evident to me after fighting this for sometime, but it wasn't clear how to fix it (nor were Google searches successful in giving me this answer). It really didn't make sense that this wouldn't work on dynamic elements since if it the element wasn't dynamic, it could just be sorted on the server side. Thanks for a great library and keep up the good work ;-)
    Thanks. That makes sense. Sorry for opening an 'issue' for something that isn't. You might add that to the documentation since newcomers to jQuery (such as myself) may not know that jQuery objects don't notice changes. It seemed evident to me after fighting this for sometime, but it wasn't clear how to fix it (nor were Google searches successful in giving me this answer). It really didn't make sense that this wouldn't work on dynamic elements since if it the element wasn't dynamic, it could just be sorted on the server side. Thanks for a great library and keep up the good work ;-)
  • Oct 12, 2011
    jquery.tinysort.1.1.1.zip (jquery.tinysort.1.1.1) file uploaded by sje...@gmail.com   -  
    Labels: Featured
    Labels: Featured
  • Oct 12, 2011
    r10 (regression test for issue 15) committed by sje...@gmail.com   -   regression test for issue 15
    regression test for issue 15
  • Oct 12, 2011
    issue 15 (use of isNum produces unexpected results) Status changed by sje...@gmail.com   -   Introduced a new parameter 'forceStrings' (defaulting to true) in version 1.1.1 (now in the repository). In essence similar to your 'parseNums' but better in naming because forceStrings=true will always result in strings, whereas parseNums=true will mostly result in numbers but sometimes in strings. Will make 1.1.1 download as soon as I've added a regression test for this issue.
    Status: Fixed
    Introduced a new parameter 'forceStrings' (defaulting to true) in version 1.1.1 (now in the repository). In essence similar to your 'parseNums' but better in naming because forceStrings=true will always result in strings, whereas parseNums=true will mostly result in numbers but sometimes in strings. Will make 1.1.1 download as soon as I've added a regression test for this issue.
    Status: Fixed
  • Oct 12, 2011
    issue 18 (Custom sortFunction ) Status changed by sje...@gmail.com   -   Ah yeah sorry about that: the custom sort wasn't really intuitive. I've added better documentation with version 1.1.1 to the repository (haven't created a new download yet)
    Status: Done
    Ah yeah sorry about that: the custom sort wasn't really intuitive. I've added better documentation with version 1.1.1 to the repository (haven't created a new download yet)
    Status: Done
  • Oct 12, 2011
    issue 17 (Can't sort dynamically added DOM elements) Status changed by sje...@gmail.com   -   Please note that 'issues' is not a forum where you can post issues with your own code but a list where you can file bug reports. If you'd read the code of the provided examples you'd have seen that they are all sorts on dynamically added elements. I can't say for sure what you're doing wrong since you didn't provide any code but what might be the case is that you declare your jQuery variable in advance, add elements, and then try to sort with your earlier declared jQuery variable. You must redeclare your jQuery variable: a jQuery object does not notice any changes in DOM. Good luck :-)
    Status: Invalid
    Please note that 'issues' is not a forum where you can post issues with your own code but a list where you can file bug reports. If you'd read the code of the provided examples you'd have seen that they are all sorts on dynamically added elements. I can't say for sure what you're doing wrong since you didn't provide any code but what might be the case is that you declare your jQuery variable in advance, add elements, and then try to sort with your earlier declared jQuery variable. You must redeclare your jQuery variable: a jQuery object does not notice any changes in DOM. Good luck :-)
    Status: Invalid
  • Oct 12, 2011
    r9 (reduced minified filesize with 14% added better documentatio...) committed by sje...@gmail.com   -   reduced minified filesize with 14% added better documentation for custom sort function tested with jQuery 1.6.4
    reduced minified filesize with 14% added better documentation for custom sort function tested with jQuery 1.6.4
  • Oct 10, 2011
    issue 18 (Custom sortFunction ) reported by luk...@wp.pl   -   Can you please provide more documentation/example how to use tinysort with custom sortFunction.
    Can you please provide more documentation/example how to use tinysort with custom sortFunction.
  • Sep 05, 2011
    issue 17 (Can't sort dynamically added DOM elements) reported by derek.di...@gmail.com   -   I could just be doing it wrong, because I'm new to jQuery, but I have a set of elements that have a <time> tag and want to sort on those elements. This works great for the elements that are in the HTML file loaded. However, I'm also loading more via jQuery. In this particular case, I have say list of blog entries and I want to sort some tweets to be chronologically accurate. The sort does't apply to the tweets because they were loaded after the page was loaded (but before I called sort). Is there some way to sync the dom so that tsort() will find the "new" DOM elements?
    I could just be doing it wrong, because I'm new to jQuery, but I have a set of elements that have a <time> tag and want to sort on those elements. This works great for the elements that are in the HTML file loaded. However, I'm also loading more via jQuery. In this particular case, I have say list of blog entries and I want to sort some tweets to be chronologically accurate. The sort does't apply to the tweets because they were loaded after the page was loaded (but before I called sort). Is there some way to sync the dom so that tsort() will find the "new" DOM elements?
  • Aug 02, 2011
    issue 16 (use of isNum produces unexpected results) changed by sje...@gmail.com   -  
    Status: Duplicate
    Status: Duplicate
  • Aug 02, 2011
    issue 15 (use of isNum produces unexpected results) commented on by sje...@gmail.com   -   Issue 16 has been merged into this issue.
    Issue 16 has been merged into this issue.
  • Aug 02, 2011
    issue 16 (use of isNum produces unexpected results) commented on by michael....@gmail.com   -   Sorry for the double-post, I accidentally double-clicked the submit button (I blame the carpal tunnel syndrom)
    Sorry for the double-post, I accidentally double-clicked the submit button (I blame the carpal tunnel syndrom)
 
Powered by Google Project Hosting