I have an array that I'm trying sort.
The array is
@parts = (1,2602344000,Ball Valve,1.0000,array(memaddress),2,2602345000,Gate Valve,2.0000,array(memaddress)...)
The array(memaddress) contains tags (V1) for the first and (V23,V40) for the second.
The record is really
1,2602344000,Gate Valve,1.0000,array(memaddress)
2,2602345000,Ball Valve,2.0000,array(memaddress)
I need to sort the records like an produce Latex output similar to this:
\section{Valve} (Taken from the Valve in the third slot)
\subsection{Ball Valve} (Taken From the third slot)
\begin{table}
2602345000 & V1 \\ (Sorted by the Second Slot,then array)
\end{table}
\subsection{Gate Valve}
\begin{table}
2602344000 & V23 \\
& V40 \\
\end{table}
Should I try to convert this array to a hash of arrays for the sorting? Also, any suggestions on the printout of the Latex output?
The array is
@parts = (1,2602344000,Ball Valve,1.0000,array(memaddress),2,2602345000,Gate Valve,2.0000,array(memaddress)...)
The array(memaddress) contains tags (V1) for the first and (V23,V40) for the second.
The record is really
1,2602344000,Gate Valve,1.0000,array(memaddress)
2,2602345000,Ball Valve,2.0000,array(memaddress)
I need to sort the records like an produce Latex output similar to this:
\section{Valve} (Taken from the Valve in the third slot)
\subsection{Ball Valve} (Taken From the third slot)
\begin{table}
2602345000 & V1 \\ (Sorted by the Second Slot,then array)
\end{table}
\subsection{Gate Valve}
\begin{table}
2602344000 & V23 \\
& V40 \\
\end{table}
Should I try to convert this array to a hash of arrays for the sorting? Also, any suggestions on the printout of the Latex output?