In arcpy.SearchCursor for row in rows I can return row.fieldname statically, but if fieldname is a variable, I don't know how to return the row.value of that variable dynamically.
for example:
sortfield = something
rows = arcpy.Searchcursor(feature)
fieldlist = arcpy.ListFields(directory)
for row in rows:
for f in fieldlist:
if f.name == something:
id = row.something