Author: | SylvainLS | Posted: | Feb 8, 2022 19:22 | Subject: | Re: Fractions | Viewed: | 25 times | Topic: | Catalog Requests | |
|
| In Catalog Requests, peregrinator writes:
| I'm not sure adding the Unicode fraction characters would be helpful for
sorting (as an aside, TIL that there are characters for ⅓ and ⅔!). But I don't
see why a 3rd-party app couldn't extract the dimensions from the item title
and sort on them - I think I could even write a regex to do it, something like:
https://regex101.com/r/Plv6pR/1
|
Kids these days, they don’t even make their own regexps… *sigh*
| Length = first term
Width = second term
Height = third term
Convert to numeric values (e.g. 4 2/3 = 4.67 - being exact here is not necessary),
then sort on length, then width, then height (default to zero if not present).
|
Maybe rather default to one, no?
I’m not sure there’s parts like that:
Bla 1 x 1 x 2/3
Bla 1 x 1
Bla 1 x 1 x 2
but we would want the second one to be, well, the second one.
|
|
Message is in Reply To: Re: Fractions - peregrinator (782) | I'm not sure adding the Unicode fraction characters would be helpful for sorting (as an aside, TIL that there are characters for ⅓ and ⅔!). But I don't see why [...] (28 months ago, Feb 8, 2022, to Catalog Requests) |
Message Has 2 Replies: Re: Fractions - peregrinator (782) | [...] Yeah, I had forgotten there are a few parts like that, with just "4L" or "12L" or whatever. [...] And I missed ^^^ this case too. Obviously the regex needs some refining. [...] (28 months ago, Feb 8, 2022, to Catalog Requests) |
Re: Fractions - hpoort (416) | [...] Like (Part 86996) (Part 3005) (Part 14716) (Part 2453b) disregarding the 'modified' on the first line (what's modified about it anyway?) (28 months ago, Feb 9, 2022, to Catalog Requests) |
23 Messages in this Thread: Msg 1 - gunga (2413) 28 months ago Feb 8, 2022 to Catalog Requests Msg 2 - tons_of_bricks (12799) 28 months ago Feb 8, 2022 to Catalog Requests Msg 3 - randyf (442) 28 months ago Feb 8, 2022 to Catalog Requests Msg 4 - SylvainLS (46) 28 months ago Feb 8, 2022 to Catalog Requests Msg 5 - randyf (442) 28 months ago Feb 8, 2022 to Catalog Requests Msg 6 - SylvainLS (46) 28 months ago Feb 8, 2022 to Catalog Requests Msg 7 - gunga (2413) 28 months ago Feb 8, 2022 to Catalog Requests Msg 8 - 1001bricks (52464) 28 months ago Feb 8, 2022 to Catalog Requests Msg 9 - SylvainLS (46) 28 months ago Feb 8, 2022 to Catalog Requests Msg 10 - 1001bricks (52464) 28 months ago Feb 8, 2022 to Catalog Requests Msg 11 - SylvainLS (46) 28 months ago Feb 8, 2022 to Catalog Requests Msg 12 - 1001bricks (52464) 28 months ago Feb 8, 2022 to Catalog Requests Msg 13 - SylvainLS (46) 28 months ago Feb 8, 2022 to Catalog Requests Msg 14 - 1001bricks (52464) 28 months ago Feb 8, 2022 to Catalog Requests Msg 15 - SylvainLS (46) 28 months ago Feb 8, 2022 to Catalog Requests Msg 16 - Llewyn (204) 28 months ago Feb 9, 2022 to Catalog Requests Msg 17 - peregrinator (782) 28 months ago Feb 8, 2022 to Catalog Requests Msg 18 « - SylvainLS (46) 28 months ago Feb 8, 2022 to Catalog Requests Msg 19 - peregrinator (782) 28 months ago Feb 8, 2022 to Catalog Requests Msg 20 - hpoort (416) 28 months ago Feb 9, 2022 to Catalog Requests Msg 21 - yorbrick (1185) 28 months ago Feb 9, 2022 to Catalog Requests Msg 22 - SylvainLS (46) 28 months ago Feb 9, 2022 to Catalog Requests Msg 23 - SylvainLS (46) 28 months ago Feb 9, 2022 to Catalog Requests
Entire thread on one page This message and all its replies on one page
|
|