the type 'long' has a 'compareto()' method but how would you do it if the variable is type 'long?' ?

Basically got a class that contains a variable called FileSize which contains null if it is a folder and other files should have a value for it..so for sorting the specific field, I will need to do a 'compareTo()' but don't seem to do it.

Any ideas? Thanks