 				)
 			VALUES (
 				'#partname#',
-				#list_order#
+				(select max(list_order) + 1 from ctspecimen_part_list_order)
 			)
 		</cfquery>
 		<cfset did=rereplace(partname,"[^A-Za-z]","_","all")>


							<td>
								<cfset thisPart = #thisRec.partname#>
								<select name="partname" size="1">
									<cfloop query="ctspecimen_part_name">
									<option
									<cfif #thisPart# is "#ctspecimen_part_name.partname#"> selected </cfif>value="#ctspecimen_part_name.partname#">#ctspecimen_part_name.partname#</option>
									</cfloop>
								</select>
							</td>
							<td>
								<cfset thisLO = #thisRec.list_order#>
								<select name="list_order" size="1">
									<cfloop from="1" to="#mo.maxNum#" index="n">
										<option <cfif #thisLO# is "#n#"> selected </cfif>value="#n#">#n#</option>
									</cfloop>
								</select>
							</td>
							<td >
hi

							</td>
						</tr>


					<tr>
						<th>Drag Handle</th>
						<th>Part Name</th>
					</tr>
				</thead>
				<tbody id="sortable">
