Beginning of sortable table for study listing; works for columns in study tables ascending only