case ID: s = "eperson_id";  break;  case EMAIL: s = "email";  break;  default: s = "lastname";
case ID: s = "eperson_id"; break;  case EMAIL: s = "email"; break;  case NETID: s = "netid"; break;  default: s = "lastname";
    public static EPerson[] findAll(Context context, int sortField)            throws SQLException    {        String s;        switch (sortField)        {        case ID:            s = "eperson_id";            break;        case EMAIL:            s = "email";            break;        default:            s = "lastname";        }        TableRowIterator rows = DatabaseManager.query(context,                "SELECT * FROM eperson ORDER BY " + s);        List epeopleRows = rows.toList();        EPerson[] epeople = new EPerson[epeopleRows.size()];        for (int i = 0; i < epeopleRows.size(); i++)        {            TableRow row = (TableRow) epeopleRows.get(i);            // First check the cache            EPerson fromCache = (EPerson) context.fromCache(EPerson.class, row                    .getIntColumn("eperson_id"));            if (fromCache != null)            {                epeople[i] = fromCache;            }            else            {                epeople[i] = new EPerson(context, row);            }        }        return epeople;    }