Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
returns list that was passed in in a sorted order.

Uses the rpmvercmp python extension to speed things up a bit.

        def version_sort(my_list):
	"""returns list that was passed in in a sorted order.

	Uses the rpmvercmp python extension to speed things up a bit.
	print "FIXME: not actually sorting version in utils.version_sort"
		import rpmvercmp
		print "Warning, rpmvercmp extension not compiled"
		cwd = os.getcwd()
		print "Attempting to fix..."
		(code, make_output) = launch_process("make clean; make", print_output=debug)
		import rpmvercmp

	return my_list

src/r/e/release-HEAD/pyutils/packaging.py   release(Download)
		# TODO: need to use rpm sorting on this?
		return utils.version_sort(candidates)
	def get_source_file(self):

src/r/e/release-HEAD/monobuild/buildserver.py   release(Download)
					for component in os.listdir(tarball_path):
						component_dir = tarball_path + os.sep + component
						versions = utils.version_sort(os.listdir(component_dir))
						for j in versions[-self.sync_num_builds:]:
							dirs.append(os.path.join('monobuild/www/tarball_logs', i, component, j))

src/r/e/release-HEAD/website/clean-downloads.py   release(Download)
	installers = utils.version_sort( glob.glob("*/%s/*" % installer) )
	if installers:
		#print "Found installers (sorted): " + " ".join(installers)

src/r/e/release-HEAD/pyutils/datastore.py   release(Download)
				info['state'][revision] = state
		info['revisions'] = utils.version_sort(info['revisions'])

src/r/e/release-HEAD/pyutils/build.py   release(Download)
		# Using this version sort is 2x slower than python's string sort, but it's accurate for our versions
		#  Trying to do the same in straight python (without the c extension) was probably >= ~6x slower
		versions = utils.version_sort(versions)
	except OSError:

src/r/e/release-HEAD/rpmvercmp/py_test2.py   release(Download)
numbers = map(str, numbers)
print utils.version_sort(numbers)