I'm trying to sort figures (using subfloat) in a table, with labels for each subfigure. My point is, using only subfloat, that the subfigures are referred in the text as figure a, b, ... and so on. But I'd like to sort them in column too, so that they will be referred as 1a, 1b, 1c, 2a, 2b, ...
Is there a way to do that using the subfig package (through the subfloat command)? Or is there another package?
EDIT: The solution does not completely do what I would like ... Here is some precision. I would like to have two kind of figures: the one where each subfloat is different, and has its own "number", and the one where subfloats have to be sorted by column and row.
Here is an example based on the first answer:
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage[demo]{graphicx}
\usepackage{tabularx}
\usepackage[lofdepth,listofformat=parens]{subfig}
\usepackage{etoolbox}
\newcounter{subfigRow}
\makeatletter
\newcommand{\newRow}{\refstepcounter{subfigRow}\setcounter{sub\@captype}{0}}
\makeatother
\AtBeginEnvironment{figure}{\setcounter{subfigRow}{1}}
\DeclareCaptionLabelFormat{parens}{(\thesubfigRow#2)}
\DeclareSubrefFormat{parens}{(\thesubfigRow#2)}
\DeclareCaptionListOfFormat{parens}{(\thesubfigRow#2)}
\begin{document}
\listoffigures
\begin{figure}[htb]
\begin{tabular}{lccc}
1 &
\subfloat{\label{one}\includegraphics[width=.3\textwidth,height=.25in]{foo}} &
\subfloat{\label{two}\includegraphics[width=.3\textwidth,height=.25in]{foo}} &
\subfloat{\label{three}\includegraphics[width=.3\textwidth,height=.25in]{foo}}\\
\newRow
2 &
\subfloat{\label{four}\includegraphics[width=.3\textwidth,height=.25in]{foo}} &
\subfloat{\label{five}\includegraphics[width=.3\textwidth,height=.25in]{foo}} &
\subfloat{\label{six}\includegraphics[width=.3\textwidth,height=.25in]{foo}}\\
& (a) & (b) & (c)
\end{tabular}
\caption{A bunch of figures}\label{fig:first}
\end{figure}
\begin{figure}[htb]
\subfloat[A subcaption][A subcaption\label{seven}]
{\includegraphics[width=.3\textwidth,height=.25in]{foo}}
\qquad
\subfloat[A subcaption][A subcaption\label{eight}]
{\includegraphics[width=.3\textwidth,height=.25in]{foo}}
\qquad
\subfloat[A subcaption][A subcaption\label{nine}]
{\includegraphics[width=.3\textwidth,height=.25in]{foo}}
\qquad
\subfloat[A subcaption][A subcaption\label{ten}]
{\includegraphics[width=.3\textwidth,height=.25in]{foo}}
\qquad
\subfloat[A subcaption][A subcaption\label{11}]
{\includegraphics[width=.3\textwidth,height=.25in]{foo}}
\qquad
\subfloat[A subcaption][A subcaption\label{12}]
{\includegraphics[width=.3\textwidth,height=.25in]{foo}}
\qquad
\caption{Another bunch of figures}\label{fig:second}
\end{figure}
As seen in \subref{one} and \subref{six} of Figure~\ref{fig:first} and
\subref{eight} of Figure~\ref{fig:second}
\end{document}
that gives 
My point is to have the number removed in the second case.


