473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

sortBy function in prototype.js

Hi all, I am trying to use the sortBy function in the prototype.js
library. Nevertheless, I can't work out what to include in the iterator
function. Can someone shed some light on this? Thanks in advance.

Feb 27 '06 #1
3 3016
st*******@gmail.com wrote:
Hi all, I am trying to use the sortBy function in the prototype.js
library. Nevertheless, I can't work out what to include in the iterator
function. Can someone shed some light on this? Thanks in advance.


prototype.js is junk. If you have problems with it, please turn to
the incompetent individual who is to blame for it and the lack of
documentation of this junk, not this newsgroup. Or simply stop using
it, learn to understand what you are doing, and make it better than
he did (which really is not that hard).
PointedEars
Feb 27 '06 #2
Thomas 'PointedEars' Lahn wrote:
prototype.js is junk. If you have problems with it, please turn to
the incompetent individual who is to blame for it and the lack of
documentation of this junk, not this newsgroup. Or simply stop using
it, learn to understand what you are doing, and make it better than
he did (which really is not that hard).


While I don't really think prototype.js is the best thing since sliced
bread, it does do some interesting things and it is used by a _lot_ of
people.

Clearly, there is a need for utility functions and solutions to common
problems in packaged form. If people like yourself and others who don't like
prototype.js would work to create a repository of code snippets which solve
problems in the way you feel is more correct, I think everyone would
benefit. Unfortunately, the people who are often most vocal about others
doing things the wrong way (yet providing people with what they want) are
very seldom willing to offer suitable alternatives.

It would be a great thing if the "experts" of this group would work together
to create "definitive" solutions to common problems.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Feb 27 '06 #3
VK

Matt Kruse wrote:
It would be a great thing if the "experts" of this group would work together
to create "definitive" solutions to common problems.


That would require to admit that there are some "definitive solutions"
to common problems. Or at least that there is some point of perfectness
/ cross-browsity after which one can stop satisfied.

As it was proven many times by somes that there are not "definitive
solutions" to anything you voice is one of crying in the wilderness :-)

Feb 27 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kostas | last post by:
I have seen that technique used occasionally, where people include an extra sortby field in tables so as to create a different ordering scheme than that derived by simply sorting the values of the...
21
by: Rob Somers | last post by:
Hey people, I read a good thread on here regarding the reason why we use function prototypes, and it answered most of my questions, but I wanted to double check on a couple of things, as I am...
41
by: Telmo Costa | last post by:
Hi. I have the following code: -------------------------------------- function Tunnel() { //arguments(???); } function Sum() { var sum = 0; for (i=0; i<arguments.length; i++) sum +=...
17
by: Matt Kruse | last post by:
Perl's map() function is a powerful shortcut to accomplish many "loop over an array and do X" operations. Below is a quick hack to simulate similar functionality. I've used it a few times and find...
3
by: Beta What | last post by:
Hello, I have a question about casting a function pointer. Say I want to make a generic module (say some ADT implementation) that requires a function pointer from the 'actual/other modules'...
1
by: Nancy | last post by:
Having trouble getting this script to work. Errorr states query failed when click on sections to sort. $s = $HTTP_GET_VARS; include("deskheader.php"); include("config.php"); function...
5
by: Daz | last post by:
Hi everyone. My query is very straight forward (I think). What's the difference between someFunc.blah = function(){ ; } and
1
by: wkerplunk | last post by:
Below is what I have build with several different languages. It works great but I need help, I am stuck. When you click on an item in the dropdown autocomplete div it does a mousedown function...
2
by: hzgt9b | last post by:
I know how to overwrite a function. Normally this is what I would do: function someFunction() { /* orig definition here */ } //later in the execution stream I would do... someFunction = function...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.