# Need help in explaining this piece of tutorial code

**URL:** <https://forum.kirupa.com/t/need-help-in-explaining-this-piece-of-tutorial-code/190061>\
**Category:** Uncategorized\
**Created:** [June 8, 2006, 10:32am UTC](https://forum.kirupa.com/t/need-help-in-explaining-this-piece-of-tutorial-code/190061 "2006-06-08T10:32:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaskvacuum](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@flaskvacuum](https://forum.kirupa.com/u/flaskvacuum)\
**Post date:** [June 8, 2006, 10:32am UTC](https://forum.kirupa.com/t/need-help-in-explaining-this-piece-of-tutorial-code/190061/1 "2006-06-08T10:32:55Z")

</div>

i was mugging on this tutorial :

```auto
http://www.kirupa.com/web/xml/examples/sortedgradeslist.htm

```

and could not figure out this piece of code:

```auto
FIRST_SORT = function(a,b){ 
return a.attributes.first > b.attributes.first; 
} 
LAST_SORT = function(a,b){ 
return a.attributes.last > b.attributes.last; 
} 
GPA_SORT = function(a,b){ 
return parseFloat(a.attributes.gpa) < parseFloat(b.attributes.gpa); 
} 

```

The return a.attributes.first \> b.attributes.first will return what value?
