Facilitating sludge granulation and favoring glycogen accumulating organisms by increased salinity in an anaerobic/micro-aerobic simultaneous partial nitrification, denitrification and phosphorus removal (SPNDPR) process.