HI !
Do you need the script to sort items according to the image ?
list "bin" in such an order that the picker go from 1 bin to another without wasting time.
skipping aisle without needed bin and so on.
do the data in the xls are the "bin's ID" to be sorted ?
and they are provided in the right order too ?
Feel free to contact me I am interested by such queries
Rudy Frenchlancer
You can do as follow :
sort
bins by Aisle,
then process odd bin first and then even,
then by process bin number
if the bin is odd first as it is
if the bin is even, just do a x -1 on the number
sort the new bin number asc
MYSQL SCRIP would be :
select
substring_index(bin,'-',1) * 1,
substring_index(substring_index(bin,'-',-2),'-',1) *1
,
mod(substring_index(substring_index(bin,'-',-2),'-',1) *1, 2),
if( mod(substring_index(substring_index(bin,'-',-2),'-',1) *1,2) = 1,
substring_index(substring_index(bin,'-',-2),'-',1) * 1,
substring_index(substring_index(bin,'-',-2),'-',1) * -1
)
from bins
order by substring_index(bin,'-',1) * 1 ,
mod(substring_index(substring_index(bin,'-',-2),'-',1) *1, 2) desc,
if( mod(substring_index(substring_index(bin,'-',-2),'-',1) *1,2) = 1,
substring_index(substring_index(bin,'-',-2),'-',1) * 1,
substring_index(substring_index(bin,'-',-2),'-',1) * -1
)