Re: Sort question - Fractions, Metric etc

From: Bret Stern <bret_stern(at)machinemanagement(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Sort question - Fractions, Metric etc
Date: 2021-08-14 21:04:46
Message-ID: 434282c4-dc47-d5f2-9ade-c493bdb09074@machinemanagement.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yep,

I provide the UI for the user to select the vendor supplied unit value
from the list.

I don't want anyone entering (manually) any value, they must select from
my list (fed from a PG table).

(and since some units don't translate exactly, they pick the one that is
closest).

It's Tile (floor, shower etc), not the tightest tolerance of dimensions,
so it's not catastrophic if it's off

a 32nd or so.

cheers

On 8/14/2021 1:43 PM, Adrian Klaver wrote:
> On 8/14/21 1:24 PM, Bret Stern wrote:
>> Here's the clip of the UI. The user selects whatever value the vendor
>> provides for unit thickness. The data entry
>
> So the vendors supply the measurements in all the various units for a
> given item?
>
>>
>> people aren't comfortable converting.
>>
>> At this point the sort_order column managed to do the trick....but
>> going forward on my next
>>
>> application, I can see a different approach.
>>
>> Are you suggesting a function like this shellsort used with an array.
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2021-08-14 21:13:11 Re: Sort question - Fractions, Metric etc
Previous Message Adrian Klaver 2021-08-14 20:43:44 Re: Sort question - Fractions, Metric etc