📄 sort_on_col_generic.shtml
字号:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Zafir Anjum">
<TITLE>CListCtrl - Sort list based on text/numeric/date-time in any column</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000" bgproperties="fixed">
<table WIDTH="100%">
<tr WIDTH="100%">
<td align=center><!--#exec cgi="/cgi/ads.cgi"--><td>
</tr>
</table>
<CENTER>
<H3>
<FONT COLOR="#AOAO99">Sort list based on text/numeric/date-time in any column</FONT></H3></CENTER>
<HR WIDTH="100%">
This code was contributed by <A HREF="mailto:tal@security7.com">Tal J. Rosen</A>.
<br>Note: The CmpItems() function uses the column number to determine the type
of the data displayed in the column. It would be better to change the column
number argument to a column type argument to make the function more generic.
<P>This code is based on the articls
<br>"Sorting the list based on text in any column" &
<br>"Sorting list on Numeric Column".
<P>The follwing code combines both articals and adds a new sort type
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -