In my last article we looked at how to sort multidimensional arrays by
creating a second single-dimensional array that is used as a key. The focus
of this article is how to sort multidimensional arrays by creating a query
object that can be sorted in the same way you would an ordered result set
from a database. In truth, this article will demonstrate two methods: one for
ColdFusion 5.0 and a second, far superior method using the tag
introduced with ColdFusion MX.
The first step is to build a small multidimensional array. The example code
below shows daily sales for ... (more)
From the first day the Internet was conceived, its primary goal was to allow
people to access information stored on remote computers. Over the last couple
of years, the technology of Web services has evolved not only to enhance
accessing this information, but to share it as well.
Web services are in action everywhere. When you see 20-minute delayed stock
quotes on a Web site, or you trac... (more)
From the first day the Internet was conceived, its primary goal was to allow
people to access information stored on remote computers. Over the last couple
of years, the technology of Web services has evolved not only to enhance
accessing this information, but to share it as well.
Web services are in action everywhere. When you see 20-minute delayed stock
quotes on a Web site, or you tra... (more)
One of the most common requests made by users when they see data displayed on
a Web page is that they want to be able to view the information sorted by
columns. Working with a database makes this request fairly simple; working
with arrays is, or at least was, a problem.
Why use an array? No ColdFusion programmer would volunteer to do such a crazy
thing. In a recent project, where our team... (more)