Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<cfquery name="get" datasource="dsn">
SELECT memofield FROM mytable
</cfquery>
<cfset aMemo = ArrayNew(2)>
<cfloop query="get">
<cfset newStr = REReplaceNoCase(get.memofield,"<.>","","ALL")>
<cfset newStr = Left(VARIABLES.newStr,30)>
<!--- put the first few words in the first element --->
<cfset aMemo[get.CurrentRow][1] = VARIABLES.newStr>
<!--- put the whole memofield in the second element --->
<cfset aMemo[get.CurrentRow][2] = get.memofield>
</cfloop>
<cfset aMemoSort = ArrayNew(2)>
<cfset aMemoSort = ArraySort(aMemo, "textnocase")>
<cfoutput>
<cfloop from="1" to=#ArrayLen(aMemoSort)# index="i">
<p>#aMemoSort[i][2]#</p>
</cfloop>
</cfoutput>