added sorting modes to getproject API call

#843